Remove extraneous db constraint

This commit is contained in:
Rob Mulholand 2019-09-10 13:58:58 -05:00
parent ce91b0d9e6
commit 3d6c973f6e
2 changed files with 1 additions and 8 deletions

View File

@ -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
);

View File

@ -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);