瀏覽代碼

fix: tweak file-block schema for migrations

Related to new fix-block-timestamps! in migration
Gabriel Horner 9 月之前
父節點
當前提交
d9d9d26116
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      deps/db/src/logseq/db/frontend/malli_schema.cljs

+ 3 - 0
deps/db/src/logseq/db/frontend/malli_schema.cljs

@@ -442,6 +442,9 @@
   [:map
    [:block/uuid :uuid]
    [:block/tx-id {:optional true} :int]
+   ;; App doesn't use timestamps but migrations may
+   [:block/created-at {:optional true} :int]
+   [:block/updated-at {:optional true} :int]
    [:file/content :string]
    [:file/path :string]
    [:file/size {:optional true} :int]