trilium/db/migrations/0202__move_global_note_map_under_hidden.sql

3 lines
259 B
MySQL
Raw Normal View History

2022-12-28 04:17:40 +08:00
DELETE FROM branches WHERE noteId = '_globalNoteMap' AND parentNoteId != 'singles' AND parentNoteId != '_hidden'; -- make sure there are no clones which would fail at the next line
2022-12-21 23:11:00 +08:00
UPDATE branches SET parentNoteId = '_hidden' WHERE noteId = '_globalNoteMap';