From 323c78e26aca4d09b4f3a583464f27cb169c5120 Mon Sep 17 00:00:00 2001 From: Qwerty5Uiop Date: Mon, 14 Nov 2022 16:43:04 +0400 Subject: [PATCH 1/2] Drop internal transactions order index --- ...221114121811_drop_internal_transactions_order_index.exs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 apps/explorer/priv/repo/migrations/20221114121811_drop_internal_transactions_order_index.exs diff --git a/apps/explorer/priv/repo/migrations/20221114121811_drop_internal_transactions_order_index.exs b/apps/explorer/priv/repo/migrations/20221114121811_drop_internal_transactions_order_index.exs new file mode 100644 index 0000000000..f59a416be8 --- /dev/null +++ b/apps/explorer/priv/repo/migrations/20221114121811_drop_internal_transactions_order_index.exs @@ -0,0 +1,7 @@ +defmodule Explorer.Repo.Migrations.DropInternalTransactionsOrderIndex do + use Ecto.Migration + + def change do + drop_if_exists(index(:internal_transactions, ["block_number DESC, transaction_index DESC, index DESC"])) + end +end From 6767b90cdabe7c7e17513fb040e79e4f7f574647 Mon Sep 17 00:00:00 2001 From: Qwerty5Uiop Date: Mon, 14 Nov 2022 16:47:25 +0400 Subject: [PATCH 2/2] Update Changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 691e3e752f..f4df9f9607 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ - [#6209](https://github.com/blockscout/blockscout/pull/6209) - Add metrics for block import stages, runners, steps - [#6257](https://github.com/blockscout/blockscout/pull/6257), [#6276](https://github.com/blockscout/blockscout/pull/6276) - DISABLE_TOKEN_INSTANCE_FETCHER env variable - [#6391](https://github.com/blockscout/blockscout/pull/6391), [#6427](https://github.com/blockscout/blockscout/pull/6427) - TokenTransfer token_id -> token_ids migration +- [#6443](https://github.com/blockscout/blockscout/pull/6443) - Drop internal transactions order index ### Fixes