removed notes_parent, instead using notes_tree

This commit is contained in:
azivner
2017-11-19 11:28:46 -05:00
parent b22eb2db1e
commit f18d25911b
5 changed files with 69 additions and 60 deletions

View 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'