From f488cfa98275fa415da0a78241e11044ace0a6ec Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Wed, 27 Nov 2019 10:51:22 +0300 Subject: [PATCH] remove unique index on transaction_hash, log_index for token transfers --- .../20191122062035_add_block_hash_to_token_transfers.exs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/explorer/priv/repo/migrations/20191122062035_add_block_hash_to_token_transfers.exs b/apps/explorer/priv/repo/migrations/20191122062035_add_block_hash_to_token_transfers.exs index c3ee02f605..795c8c28cb 100644 --- a/apps/explorer/priv/repo/migrations/20191122062035_add_block_hash_to_token_transfers.exs +++ b/apps/explorer/priv/repo/migrations/20191122062035_add_block_hash_to_token_transfers.exs @@ -29,5 +29,7 @@ defmodule Explorer.Repo.Migrations.AddBlockHashToTokenTransfers do DROP CONSTRAINT token_transfers_pkey, ADD PRIMARY KEY (transaction_hash, block_hash, log_index); """) + + drop(unique_index(:token_transfers, [:transaction_hash, :log_index])) end end