Ver código fonte

fix: tweak file-block schema for migrations

Related to new fix-block-timestamps! in migration
Gabriel Horner 10 meses atrás
pai
commit
d9d9d26116
1 arquivos alterados com 3 adições e 0 exclusões
  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]