trilium/db/migrations/0201__move_share_under_hidden.sql
2022-12-24 21:25:34 +01:00

2 lines
219 B
SQL

DELETE FROM branches WHERE noteId = '_share' AND parentNoteId != 'root' AND parentNoteId != '_hidden'; -- delete all other branches of _share if any
UPDATE branches SET parentNoteId = '_hidden' WHERE noteId = '_share';