fix migration script

This commit is contained in:
zadam 2021-12-22 13:14:50 +01:00
parent cd8c24ceae
commit bc9903191e

View file

@ -1 +1,8 @@
UPDATE branches SET branchId = 'hidden' where parentNoteId = 'root' AND noteId = 'hidden';
UPDATE branches SET branchId = 'hidden' where branchId = (
SELECT branchId FROM branches
WHERE parentNoteId = 'root'
AND noteId = 'hidden'
AND isDeleted = 0
ORDER BY utcDateModified
LIMIT 1
);