Merge pull request #6532 from blockscout/np-fix-migration

Fix index creation migration
pull/6533/head
Victor Baranov 2 years ago committed by GitHub
commit 00f66432e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 4
      apps/explorer/priv/repo/migrations/20220919105140_add_method_id_index.exs

@ -28,6 +28,7 @@
### Fixes
- [#6532](https://github.com/blockscout/blockscout/pull/6532) - Fix index creation migration
- [#6473](https://github.com/blockscout/blockscout/pull/6473) - Fix state changes for contract creation transactions
- [#6475](https://github.com/blockscout/blockscout/pull/6475) - Fix token name with unicode graphemes shortening
- [#6420](https://github.com/blockscout/blockscout/pull/6420) - Fix address logs search

@ -5,11 +5,11 @@ defmodule Explorer.Repo.Migrations.AddMethodIdIndex do
def up do
execute("""
CREATE INDEX CONCURRENTLY method_id ON public.transactions USING btree (substring(input for 4));
CREATE INDEX CONCURRENTLY IF NOT EXISTS method_id ON public.transactions USING btree (substring(input for 4));
""")
end
def down do
execute("DROP INDEX method_id")
execute("DROP INDEX IF EXISTS method_id")
end
end

Loading…
Cancel
Save