drop unique index on transaction_hash, index

pull/2895/head
Ayrat Badykov 5 years ago
parent 6ea228eec4
commit 3dd80bb9b9
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 4
      apps/explorer/priv/repo/migrations/20191121064805_add_block_hash_and_block_index_to_logs.exs

@ -34,5 +34,9 @@ defmodule Explorer.Repo.Migrations.AddBlockHashAndBlockIndexToLogs do
DROP CONSTRAINT logs_pkey,
ADD PRIMARY KEY (transaction_hash, block_hash, index);
""")
drop(unique_index(:logs, [:transaction_hash, :index]))
create_if_not_exists(index(:logs, [:transaction_hash, :index]))
end
end

Loading…
Cancel
Save