commit
2da0eb48ab
@ -0,0 +1,12 @@ |
||||
defmodule Explorer.Repo.Migrations.AddUniqueIndexToRewards do |
||||
use Ecto.Migration |
||||
|
||||
def change do |
||||
create( |
||||
unique_index( |
||||
:block_rewards, |
||||
[:address_hash, :block_hash, :address_type] |
||||
) |
||||
) |
||||
end |
||||
end |
@ -0,0 +1,7 @@ |
||||
defmodule Explorer.Repo.Migrations.AddIndexOnAddressHashBlockNumberAndTokenContractAddressHashForCurrentTokenBalance do |
||||
use Ecto.Migration |
||||
|
||||
def change do |
||||
create(index(:address_current_token_balances, [:address_hash, :block_number, :token_contract_address_hash])) |
||||
end |
||||
end |
Loading…
Reference in new issue