fix: schema graph generation

Regressed with property value change. Also updated debug file and
fixed a missing built-in property ns which caused an invalid debug file
This commit is contained in:
Gabriel Horner
2024-06-14 11:36:39 -04:00
parent d588df622e
commit 0f122e9a7e
4 changed files with 6 additions and 4 deletions

View File

@@ -25,7 +25,8 @@
[dir db-name] (if (string/includes? graph-dir "/")
((juxt node-path/dirname node-path/basename) graph-dir)
[(node-path/join (os/homedir) "logseq" "graphs") graph-dir])
sqlite-build-edn (-> (resolve-path edn-path) fs/readFileSync str edn/read-string)
sqlite-build-edn (merge {:auto-create-ontology? true}
(-> (resolve-path edn-path) fs/readFileSync str edn/read-string))
conn (db-pipeline/init-conn dir db-name {:classpath (cp/get-classpath)})
{:keys [init-tx block-props-tx]} (db-pipeline/build-blocks-tx sqlite-build-edn)]
(println "Generating" (count (filter :block/name init-tx)) "pages and"