From 3d6c973f6eb1e3219d7a146b3f526c629807258f Mon Sep 17 00:00:00 2001 From: Rob Mulholand Date: Tue, 10 Sep 2019 13:58:58 -0500 Subject: [PATCH] Remove extraneous db constraint --- db/migrations/00007_create_full_sync_logs_table.sql | 3 +-- db/migrations/00016_add_receipts_fk_to_logs.sql | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) 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);