improve migrations

pull/2897/head
Victor Baranov 5 years ago
parent 9c2fddb5d3
commit 99710767c9
  1. 4
      apps/explorer/priv/repo/migrations/20191128124415_remove_duplicate_indexes_token_entities.exs

@ -2,8 +2,8 @@ defmodule Explorer.Repo.Migrations.RemoveDuplicateIndexesTokenEntities do
use Ecto.Migration
def change do
drop(index(:address_token_balances, [:block_number]))
drop_if_exists(index(:address_token_balances, [:block_number], name: "address_token_balances_block_number_index"))
drop(index(:token_instances, [:token_id]))
drop_if_exists(index(:token_instances, [:token_id], name: "token_instances_token_id_index"))
end
end

Loading…
Cancel
Save