Skip to content

Commit 6f59a02

Browse files
committed
fix: mark ensure-graph-uuid as deprecated
1 parent 99dea60 commit 6f59a02

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/main/frontend/worker/db/migrate.cljs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,8 @@
164164
(when (:logseq.property/ui-position e)
165165
[:db/retract (:e d) :logseq.property/ui-position]))))))
166166

167-
(defn- ensure-graph-uuid
168-
[db]
169-
(let [graph-uuid (:kv/value (d/entity db :logseq.kv/graph-uuid))]
170-
(when-not graph-uuid
171-
[(sqlite-util/kv :logseq.kv/graph-uuid (common-uuid/gen-uuid))])))
167+
(defn- deprecated-ensure-graph-uuid
168+
[_db])
172169

173170
(def schema-version->updates
174171
"A vec of tuples defining datascript migrations. Each tuple consists of the
@@ -188,7 +185,7 @@
188185
{})]
189186
["65.16" {:properties [:logseq.property.asset/external-file-name]}]
190187
["65.17" {:properties [:logseq.property.publish/published-url]}]
191-
["65.18" {:fix ensure-graph-uuid}]])
188+
["65.18" {:fix deprecated-ensure-graph-uuid}]])
192189

193190
(let [[major minor] (last (sort (map (comp (juxt :major :minor) db-schema/parse-schema-version first)
194191
schema-version->updates)))]

0 commit comments

Comments
 (0)