forked from matter-labs/zksync
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: deniallugo <[email protected]>
- Loading branch information
1 parent
02c1d6c
commit fa2b1c3
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
core/lib/storage/migrations/2022-07-13-134305_add_seq_no_to_tx_filters/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |