From 910792faace1b975e2b57e0bd464b1fda1982a8e Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Thu, 3 May 2018 09:33:50 -0500 Subject: [PATCH] Fix internal transaction indexes --- .../migrations/20180221001948_create_internal_transactions.exs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/explorer/priv/repo/migrations/20180221001948_create_internal_transactions.exs b/apps/explorer/priv/repo/migrations/20180221001948_create_internal_transactions.exs index 9d25b578ce..055f82072c 100644 --- a/apps/explorer/priv/repo/migrations/20180221001948_create_internal_transactions.exs +++ b/apps/explorer/priv/repo/migrations/20180221001948_create_internal_transactions.exs @@ -78,12 +78,13 @@ defmodule Explorer.Repo.Migrations.CreateInternalTransactions do # Foreign Key indexes + create(index(:internal_transactions, :created_contract_address_hash)) create(index(:internal_transactions, :from_address_hash)) create(index(:internal_transactions, :to_address_hash)) create(index(:internal_transactions, :transaction_hash)) # Unique indexes - create(index(:internal_transactions, [:transaction_hash, :index])) + create(unique_index(:internal_transactions, [:transaction_hash, :index])) end end