Change create to create_if_not_exists

pull/6511/head
Никита Поздняков 2 years ago
parent d40eee9057
commit ae64af7dab
No known key found for this signature in database
GPG Key ID: F344106F9804FE5F
  1. 6
      apps/explorer/priv/repo/migrations/20221126103223_add_txs_indexes.exs

@ -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,
[ [

Loading…
Cancel
Save