mirror of
https://github.com/zadam/trilium.git
synced 2025-01-31 11:32:30 +08:00
fix migration script
This commit is contained in:
parent
cd8c24ceae
commit
bc9903191e
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue