mirror of https://github.com/TriliumNext/Notes
cleanup of hidden notes
parent
3122d0cc6b
commit
c92b451033
@ -1 +0,0 @@
|
||||
module.exports = () => console.log("NOOP, increased because of new note type");
|
||||
@ -0,0 +1,10 @@
|
||||
module.exports = () => {
|
||||
const specialNotesService = require('../../src/services/special_notes');
|
||||
const cls = require("../../src/services/cls");
|
||||
const beccaLoader = require("../../src/becca/becca_loader");
|
||||
|
||||
cls.init(() => {
|
||||
beccaLoader.load();
|
||||
specialNotesService.getHiddenRoot();
|
||||
});
|
||||
};
|
||||
@ -0,0 +1 @@
|
||||
UPDATE branches SET parentNoteId = 'hidden' WHERE noteId = 'globalnotemap';
|
||||
@ -0,0 +1,3 @@
|
||||
UPDATE branches SET branchId = 'search' WHERE parentNoteId = 'hidden' AND noteId = 'search';
|
||||
UPDATE branches SET branchId = 'globalnotemap' WHERE parentNoteId = 'hidden' AND noteId = 'globalnotemap';
|
||||
UPDATE branches SET branchId = 'sqlconsole' WHERE parentNoteId = 'hidden' AND noteId = 'sqlconsole';
|
||||
@ -0,0 +1,6 @@
|
||||
DELETE FROM branches WHERE noteId = 'singles';
|
||||
DELETE FROM notes WHERE noteId = 'singles';
|
||||
DELETE FROM note_contents WHERE noteId = 'singles';
|
||||
DELETE FROM note_revisions WHERE noteId = 'singles';
|
||||
DELETE FROM attributes WHERE noteId = 'singles';
|
||||
DELETE FROM entity_changes WHERE entityId = 'singles';
|
||||
Loading…
Reference in New Issue