mirror of
https://github.com/logseq/logseq.git
synced 2026-05-23 12:14:06 +00:00
fix: tweak schema to be valid for new db graphs
Also reuse initialization data
This commit is contained in:
@@ -24,8 +24,6 @@
|
||||
(defn- setup-init-data
|
||||
"Setup initial data same as frontend.handler.repo/create-db"
|
||||
[conn]
|
||||
;; App doesn't persist :db/type but it does load it each time
|
||||
(d/transact! conn [{:db/id -1 :db/ident :db/type :db/type "db"}])
|
||||
(let [config-content (or (some-> (find-on-classpath "templates/config.edn") fs/readFileSync str)
|
||||
(do (println "Setting graph's config to empty since no templates/config.edn was found.")
|
||||
"{}"))]
|
||||
|
||||
Reference in New Issue
Block a user