From 6f7df4286521c7e338fcbacc04bb1b393c6c857e Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Fri, 22 May 2020 00:19:47 +0300 Subject: [PATCH] Modified direction in index --- ..._token_contract_address_hash_token_id_block_number_index.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/explorer/priv/repo/migrations/20200521170002_create_token_transfers_token_contract_address_hash_token_id_block_number_index.exs b/apps/explorer/priv/repo/migrations/20200521170002_create_token_transfers_token_contract_address_hash_token_id_block_number_index.exs index f18fc168c2..eb136b3f22 100644 --- a/apps/explorer/priv/repo/migrations/20200521170002_create_token_transfers_token_contract_address_hash_token_id_block_number_index.exs +++ b/apps/explorer/priv/repo/migrations/20200521170002_create_token_transfers_token_contract_address_hash_token_id_block_number_index.exs @@ -2,6 +2,6 @@ defmodule Explorer.Repo.Migrations.CreateTokenTransfersTokenContractAddressHashT use Ecto.Migration def change do - create_if_not_exists(index(:token_transfers, [:token_contract_address_hash, :token_id, :block_number])) + create_if_not_exists(index(:token_transfers, [:token_contract_address_hash, "token_id DESC", "block_number DESC"])) end end