diff --git a/db/migrations/00007_create_full_sync_logs_table.sql b/db/migrations/00007_create_full_sync_logs_table.sql index b2dc154d..67cc31bf 100644 --- a/db/migrations/00007_create_full_sync_logs_table.sql +++ b/db/migrations/00007_create_full_sync_logs_table.sql @@ -10,8 +10,7 @@ CREATE TABLE full_sync_logs topic1 VARCHAR(66), topic2 VARCHAR(66), topic3 VARCHAR(66), - data TEXT, - CONSTRAINT full_sync_log_uc UNIQUE (block_number, index) + data TEXT ); diff --git a/db/migrations/00016_add_receipts_fk_to_logs.sql b/db/migrations/00016_add_receipts_fk_to_logs.sql index b2729597..760cd504 100644 --- a/db/migrations/00016_add_receipts_fk_to_logs.sql +++ b/db/migrations/00016_add_receipts_fk_to_logs.sql @@ -1,7 +1,4 @@ -- +goose Up -ALTER TABLE full_sync_logs - DROP CONSTRAINT full_sync_log_uc; - ALTER TABLE full_sync_logs ADD COLUMN receipt_id INT; @@ -18,6 +15,3 @@ ALTER TABLE full_sync_logs ALTER TABLE full_sync_logs DROP COLUMN receipt_id; - -ALTER TABLE full_sync_logs - ADD CONSTRAINT full_sync_log_uc UNIQUE (block_number, index);