Selaa lähdekoodia

fix: tweak file-block schema for migrations

Related to new fix-block-timestamps! in migration
Gabriel Horner 9 kuukautta sitten
vanhempi
sitoutus
d9d9d26116
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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]