From fa2b1c382694ac8bf6e994d58fa7e00f3585f25c Mon Sep 17 00:00:00 2001 From: deniallugo Date: Fri, 15 Jul 2022 07:23:24 +0200 Subject: [PATCH] Fix migration Signed-off-by: deniallugo --- .../2022-07-13-134305_add_seq_no_to_tx_filters/up.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/lib/storage/migrations/2022-07-13-134305_add_seq_no_to_tx_filters/up.sql b/core/lib/storage/migrations/2022-07-13-134305_add_seq_no_to_tx_filters/up.sql index 1a1a62165..11ea1d148 100644 --- a/core/lib/storage/migrations/2022-07-13-134305_add_seq_no_to_tx_filters/up.sql +++ b/core/lib/storage/migrations/2022-07-13-134305_add_seq_no_to_tx_filters/up.sql @@ -1,13 +1,13 @@ ALTER TABLE tx_filters ADD COLUMN sequence_number BIGINT; ALTER TABLE tx_filters ADD COLUMN is_priority bool; -CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS uq_executed_transactions_sequence_number ON public.executed_transactions USING btree (sequence_number); +CREATE UNIQUE INDEX IF NOT EXISTS uq_executed_transactions_sequence_number ON public.executed_transactions USING btree (sequence_number); DROP INDEX IF EXISTS executed_transactions_sequence_number; DROP INDEX IF EXISTS ix_executed_transactions_tx_hash_sequence_number; -CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS uq_executed_priority_operations_sequence_number ON public.executed_priority_operations USING btree (sequence_number); +CREATE UNIQUE INDEX IF NOT EXISTS uq_executed_priority_operations_sequence_number ON public.executed_priority_operations USING btree (sequence_number); DROP INDEX IF EXISTS executed_priority_operations_sequence_number; DROP INDEX IF EXISTS ix_executed_priority_operations_tx_hash_sequence_number; -CREATE INDEX CONCURRENTLY IF NOT EXISTS ix_tx_filters_address_sequence_number ON public.tx_filters USING btree (address, sequence_number) include(is_priority); +CREATE INDEX IF NOT EXISTS ix_tx_filters_address_sequence_number ON public.tx_filters USING btree (address, sequence_number) include(is_priority); DROP INDEX IF EXISTS ix_tx_filters_address_tx_hash;