trilium/db/migrations/0188__set_hidden_branchId.sql

9 lines
221 B
MySQL
Raw Normal View History

2021-12-22 20:14:50 +08:00
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
);