Fix internal transaction indexes

pull/162/head
Luke Imhoff 7 years ago
parent 40d00802ea
commit 910792faac
  1. 3
      apps/explorer/priv/repo/migrations/20180221001948_create_internal_transactions.exs

@ -78,12 +78,13 @@ defmodule Explorer.Repo.Migrations.CreateInternalTransactions do
# Foreign Key indexes # Foreign Key indexes
create(index(:internal_transactions, :created_contract_address_hash))
create(index(:internal_transactions, :from_address_hash)) create(index(:internal_transactions, :from_address_hash))
create(index(:internal_transactions, :to_address_hash)) create(index(:internal_transactions, :to_address_hash))
create(index(:internal_transactions, :transaction_hash)) create(index(:internal_transactions, :transaction_hash))
# Unique indexes # Unique indexes
create(index(:internal_transactions, [:transaction_hash, :index])) create(unique_index(:internal_transactions, [:transaction_hash, :index]))
end end
end end

Loading…
Cancel
Save