|
|
@ -4,7 +4,7 @@ defmodule Explorer.Repo.Migrations.AddTxsIndexes do |
|
|
|
@disable_migration_lock true |
|
|
|
@disable_migration_lock true |
|
|
|
|
|
|
|
|
|
|
|
def change do |
|
|
|
def change do |
|
|
|
create( |
|
|
|
create_if_not_exists( |
|
|
|
index( |
|
|
|
index( |
|
|
|
:transactions, |
|
|
|
:transactions, |
|
|
|
[ |
|
|
|
[ |
|
|
@ -19,7 +19,7 @@ defmodule Explorer.Repo.Migrations.AddTxsIndexes do |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
create( |
|
|
|
create_if_not_exists( |
|
|
|
index( |
|
|
|
index( |
|
|
|
:transactions, |
|
|
|
:transactions, |
|
|
|
[:to_address_hash, "block_number DESC NULLS FIRST", "index DESC NULLS FIRST", "inserted_at DESC", "hash DESC"], |
|
|
|
[:to_address_hash, "block_number DESC NULLS FIRST", "index DESC NULLS FIRST", "inserted_at DESC", "hash DESC"], |
|
|
@ -28,7 +28,7 @@ defmodule Explorer.Repo.Migrations.AddTxsIndexes do |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
create( |
|
|
|
create_if_not_exists( |
|
|
|
index( |
|
|
|
index( |
|
|
|
:transactions, |
|
|
|
:transactions, |
|
|
|
[ |
|
|
|
[ |
|
|
|