From 50f5f8589351e167f4e7efbb879a7b95de7aba2d Mon Sep 17 00:00:00 2001 From: Alonso Date: Tue, 21 Nov 2023 08:46:36 +0100 Subject: [PATCH] fix migration --- db/pgstorage/migrations/0006.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/pgstorage/migrations/0006.sql b/db/pgstorage/migrations/0006.sql index a40d1110..6bcf2ce6 100644 --- a/db/pgstorage/migrations/0006.sql +++ b/db/pgstorage/migrations/0006.sql @@ -1,7 +1,7 @@ -- +migrate Up ALTER TABLE mt.rht ADD primary key(key, deposit_id); ALTER TABLE mt.root ADD primary key(deposit_id); -ALTER TABLE sync.token_wrapped ADD primary key(block_id); +ALTER TABLE sync.token_wrapped ADD primary key(network_id,orig_net,orig_token_addr); DROP TABLE IF EXISTS mt.rht_temp; CREATE INDEX IF NOT EXISTS claim_block_id ON sync.claim USING btree (block_id);