trilium/db/migrations/0200__create_hidden_subtree.js

13 lines
529 B
JavaScript
Raw Normal View History

2022-12-08 20:45:56 +08:00
module.exports = () => {
const hiddenSubtreeService = require('../../src/services/hidden_subtree');
2022-12-08 20:45:56 +08:00
const cls = require("../../src/services/cls");
const beccaLoader = require("../../src/becca/becca_loader");
cls.init(() => {
beccaLoader.load();
2022-12-20 06:49:41 +08:00
// 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
2022-12-08 20:45:56 +08:00
hiddenSubtreeService.checkHiddenSubtree();
});
};