Modified direction in index

pull/3120/head
Victor Baranov 5 years ago
parent 374cfead77
commit 6f7df42865
  1. 2
      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 use Ecto.Migration
def change do 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
end end

Loading…
Cancel
Save