|
|
@ -1,5 +1,7 @@ |
|
|
|
defmodule Explorer.Repo.Migrations.AddTokensCatalogedIndex do |
|
|
|
defmodule Explorer.Repo.Migrations.AddTokensCatalogedIndex do |
|
|
|
use Ecto.Migration |
|
|
|
use Ecto.Migration |
|
|
|
|
|
|
|
@disable_ddl_transaction true |
|
|
|
|
|
|
|
@disable_migration_lock true |
|
|
|
|
|
|
|
|
|
|
|
def change do |
|
|
|
def change do |
|
|
|
create( |
|
|
|
create( |
|
|
@ -7,7 +9,8 @@ defmodule Explorer.Repo.Migrations.AddTokensCatalogedIndex do |
|
|
|
:tokens, |
|
|
|
:tokens, |
|
|
|
~w(cataloged)a, |
|
|
|
~w(cataloged)a, |
|
|
|
name: :uncataloged_tokens, |
|
|
|
name: :uncataloged_tokens, |
|
|
|
where: ~s|"cataloged" = false| |
|
|
|
where: ~s|"cataloged" = false|, |
|
|
|
|
|
|
|
concurrently: true |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
end |
|
|
|
end |
|
|
|