Notes/db/migrations/0201__move_share_under_hidden.sql

3 lines
189 B
MySQL
Raw Normal View History

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