Merge pull request #3120 from poanetwork/vb-fix-inventory

Modified direction in index
pull/3122/head
Victor Baranov 5 years ago committed by GitHub
commit f52092af97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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
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

Loading…
Cancel
Save