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.
- Loading branch information
1 parent
bc41fca
commit 232f987
Showing
2 changed files
with
3 additions
and
1 deletion.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
core/lib/storage/migrations/2021-10-14-093424_tx-filter-table/down.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 +1,2 @@ | ||
DROP TABLE IF EXISTS tx_filters; | ||
DROP INDEX IF EXISTS tx_filters_address_idx; |
3 changes: 2 additions & 1 deletion
3
core/lib/storage/migrations/2021-10-14-093424_tx-filter-table/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,7 +1,8 @@ | ||
CREATE TABLE tx_filters | ||
CREATE TABLE IF NOT EXISTS tx_filters | ||
( | ||
address bytea NOT NULL, | ||
token INTEGER NOT NULL, | ||
tx_hash bytea NOT NULL, | ||
PRIMARY KEY (address, token, tx_hash) | ||
); | ||
CREATE INDEX IF NOT EXISTS tx_filters_address_idx ON "tx_filters" USING hash (address); |