migration comments

This commit is contained in:
zadam 2022-12-19 23:49:41 +01:00
parent 8c4dda45ef
commit 7c6d67f1ad
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,4 @@
UPDATE branches SET branchId = 'search' WHERE parentNoteId = 'hidden' AND noteId = 'search';
-- the IDs are renamed in the 0199 migration
UPDATE branches SET branchId = 'globalnotemap' WHERE parentNoteId = 'singles' AND noteId = 'globalnotemap';
UPDATE branches SET branchId = 'sqlconsole' WHERE parentNoteId = 'hidden' AND noteId = 'sqlconsole';

View File

@ -5,7 +5,8 @@ module.exports = () => {
cls.init(() => {
beccaLoader.load();
// create it because it subsequent migrations we will move some existing notes into it (share...)
// make sure the hidden subtree exists since the subsequent migrations we will move some existing notes into it (share...)
// in previous releases hidden subtree was created lazily
hiddenSubtreeService.checkHiddenSubtree();
});
};