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
Showing
2 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
core/lib/storage/migrations/2022-03-28-101714_tree-cache-bincode/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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE account_tree_cache DROP COLUMN tree_cache_binary; | ||
ALTER TABLE account_tree_cache ALTER COLUMN tree_cache SET NOT NULL; |
4 changes: 4 additions & 0 deletions
4
core/lib/storage/migrations/2022-03-28-101714_tree-cache-bincode/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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- Adds an optional column for the tree cache encoded in binary. | ||
-- Makes the old tree cache field optional. | ||
ALTER TABLE account_tree_cache ALTER COLUMN tree_cache DROP NOT NULL; | ||
ALTER TABLE account_tree_cache ADD COLUMN tree_cache_binary BYTEA; |