From 6d5b9510c129844ba4b72ee3ffa5c55096dde3ef Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Thu, 28 Feb 2019 13:43:45 +0300 Subject: [PATCH 1/2] add index for created_contract_address_hash in transactions --- ...190228102650_add_index_created_contract_address_has.exs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 apps/explorer/priv/repo/migrations/20190228102650_add_index_created_contract_address_has.exs diff --git a/apps/explorer/priv/repo/migrations/20190228102650_add_index_created_contract_address_has.exs b/apps/explorer/priv/repo/migrations/20190228102650_add_index_created_contract_address_has.exs new file mode 100644 index 0000000000..db46c4dc61 --- /dev/null +++ b/apps/explorer/priv/repo/migrations/20190228102650_add_index_created_contract_address_has.exs @@ -0,0 +1,7 @@ +defmodule Explorer.Repo.Migrations.AddIndexCreatedContractAddressHas do + use Ecto.Migration + + def change do + create(index(:transactions, [:created_contract_address_hash])) + end +end From 59e1b997f8f52b671a43e70b47358c59852bdf9f Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Thu, 28 Feb 2019 14:04:38 +0300 Subject: [PATCH 2/2] Rename 20190228102650_add_index_created_contract_address_has.exs to 20190228102650_add_index_created_contract_address_hash.exs --- ...=> 20190228102650_add_index_created_contract_address_hash.exs} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename apps/explorer/priv/repo/migrations/{20190228102650_add_index_created_contract_address_has.exs => 20190228102650_add_index_created_contract_address_hash.exs} (100%) diff --git a/apps/explorer/priv/repo/migrations/20190228102650_add_index_created_contract_address_has.exs b/apps/explorer/priv/repo/migrations/20190228102650_add_index_created_contract_address_hash.exs similarity index 100% rename from apps/explorer/priv/repo/migrations/20190228102650_add_index_created_contract_address_has.exs rename to apps/explorer/priv/repo/migrations/20190228102650_add_index_created_contract_address_hash.exs