Skip to content

Commit d4fa83d

Browse files
committed
More forgiving
1 parent 15ad108 commit d4fa83d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
-- +goose Up
22
-- +goose StatementBegin
3-
ALTER TABLE cloud_event ADD COLUMN voids_id String DEFAULT '' COMMENT 'For dimo.tombstone events, the id of the event being tombstoned. Empty for all other event types.' AFTER data_index_key;
3+
ALTER TABLE cloud_event ADD COLUMN IF NOT EXISTS voids_id String DEFAULT '' COMMENT 'For dimo.tombstone events, the id of the event being tombstoned. Empty for all other event types.' AFTER data_index_key;
44
-- +goose StatementEnd
55
-- +goose StatementBegin
66
-- Make it cheap to find these events. This may also help with some attestation filtering.
77
-- Need to materialize this on your own.
8-
ALTER TABLE cloud_event ADD INDEX idx_event_type event_type TYPE set(0) GRANULARITY 1;
8+
ALTER TABLE cloud_event ADD INDEX IF NOT EXISTS idx_event_type event_type TYPE set(0) GRANULARITY 1;
99
-- +goose StatementEnd
1010

1111
-- +goose Down
1212
-- +goose StatementBegin
13-
ALTER TABLE cloud_event DROP INDEX idx_event_type;
13+
ALTER TABLE cloud_event DROP INDEX IF EXISTS idx_event_type;
1414
-- +goose StatementEnd
1515
-- +goose StatementBegin
16-
ALTER TABLE cloud_event DROP COLUMN voids_id;
16+
ALTER TABLE cloud_event DROP COLUMN IF EXISTS voids_id;
1717
-- +goose StatementEnd

0 commit comments

Comments
 (0)