Skip to content

Commit

Permalink
Add migration for the new cache
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Mar 28, 2022
1 parent 048223b commit f153fac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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;
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;

0 comments on commit f153fac

Please sign in to comment.