remove diff unique connstraint, overwrite as diff

This commit is contained in:
Ian Norden
2020-08-07 23:17:11 -05:00
parent 943e2ba8e2
commit 74752d15aa
5 changed files with 12 additions and 10 deletions
@@ -8,7 +8,7 @@ CREATE TABLE eth.state_cids (
state_path BYTEA,
node_type INTEGER,
diff BOOLEAN NOT NULL DEFAULT FALSE,
UNIQUE (header_id, state_path, diff)
UNIQUE (header_id, state_path)
);
-- +goose Down
@@ -8,7 +8,7 @@ CREATE TABLE eth.storage_cids (
storage_path BYTEA,
node_type INTEGER NOT NULL,
diff BOOLEAN NOT NULL DEFAULT FALSE,
UNIQUE (state_id, storage_path, diff)
UNIQUE (state_id, storage_path)
);
-- +goose Down