fix migration

pull/255/head
zadam 2022-12-24 21:25:34 +07:00
parent e2b227df34
commit f08fbf7bca
1 changed files with 1 additions and 1 deletions

@ -1,2 +1,2 @@
DELETE FROM branches WHERE noteId = '_share' AND parentNoteId != 'root'; -- delete all other branches of _share if any
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';