trilium/db/migrations/0188__set_hidden_branchId.sql
2021-12-22 13:14:50 +01:00

9 lines
221 B
SQL

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
);