trilium/db/migrations/0201__move_share_under_hidden.sql

3 lines
219 B
MySQL
Raw Normal View History

2022-12-25 04:25:34 +08:00
DELETE FROM branches WHERE noteId = '_share' AND parentNoteId != 'root' AND parentNoteId != '_hidden'; -- delete all other branches of _share if any
2022-12-24 14:17:22 +08:00
UPDATE branches SET parentNoteId = '_hidden' WHERE noteId = '_share';