mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
removed notes_parent, instead using notes_tree
This commit is contained in:
6
migrations/0040__fix_note_pid.sql
Normal file
6
migrations/0040__fix_note_pid.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
UPDATE
|
||||
notes_tree
|
||||
SET
|
||||
note_pid = (SELECT parent.note_id FROM notes_tree parent WHERE notes_tree.note_pid = parent.note_tree_id)
|
||||
WHERE
|
||||
note_pid != 'root'
|
||||
Reference in New Issue
Block a user