fix migration to not rely on branchId

This commit is contained in:
zadam 2022-12-24 07:17:22 +01:00
parent 392b89e6dd
commit bff33932d9

View file

@ -1 +1,2 @@
UPDATE branches SET parentNoteId = '_hidden' WHERE branchId = '_share'; 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';