add migration

This commit is contained in:
Tienson Qin
2025-05-16 21:31:06 +08:00
parent 0822e455f8
commit dca6ef95ee
8 changed files with 73 additions and 25 deletions

View File

@@ -390,7 +390,7 @@
(testing "namespaces"
(let [expand-children (fn expand-children [ent parent]
(if-let [children (:logseq.property/_parent ent)]
(if-let [children (:block/_parent ent)]
(cons {:parent (:block/title parent) :child (:block/title ent)}
(mapcat #(expand-children % ent) children))
[{:parent (:block/title parent) :child (:block/title ent)}]))]