From 99710767c9190b898b63831e57917bec49bcfeff Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Fri, 10 Jan 2020 14:13:13 +0300 Subject: [PATCH] improve migrations --- ...20191128124415_remove_duplicate_indexes_token_entities.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/explorer/priv/repo/migrations/20191128124415_remove_duplicate_indexes_token_entities.exs b/apps/explorer/priv/repo/migrations/20191128124415_remove_duplicate_indexes_token_entities.exs index 35a19839d5..9a9415ada4 100644 --- a/apps/explorer/priv/repo/migrations/20191128124415_remove_duplicate_indexes_token_entities.exs +++ b/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