Skip to content

Commit

Permalink
Fix migration
Browse files Browse the repository at this point in the history
Signed-off-by: deniallugo <[email protected]>
  • Loading branch information
Deniallugo committed Jul 29, 2022
1 parent 02c1d6c commit fa2b1c3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit fa2b1c3

Please sign in to comment.