Skip to content

Build your personal knowledge base with Trilium Notes

migration comments

zadam7c6d67f1adf7
diff --git a/db/migrations/0198__set_branch_id_in_hidden_subtree.sql b/db/migrations/0198__set_branch_id_in_hidden_subtree.sql
index 2b8e967327..409864fef2 100644
--- a/db/migrations/0198__set_branch_id_in_hidden_subtree.sql
+++ b/db/migrations/0198__set_branch_id_in_hidden_subtree.sql
@@ -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';
diff --git a/db/migrations/0200__create_hidden_subtree.js b/db/migrations/0200__create_hidden_subtree.js
index 990566283c..e074e8ff72 100644
--- a/db/migrations/0200__create_hidden_subtree.js
+++ b/db/migrations/0200__create_hidden_subtree.js
@@ -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();
});
};