diff --git a/common/src/app/common/files/defaults.cljc b/common/src/app/common/files/defaults.cljc index aae6cf1ef1..61cd7f1188 100644 --- a/common/src/app/common/files/defaults.cljc +++ b/common/src/app/common/files/defaults.cljc @@ -6,4 +6,4 @@ (ns app.common.files.defaults) -(def version 45) +(def version 46) diff --git a/common/src/app/common/files/migrations.cljc b/common/src/app/common/files/migrations.cljc index dfce09424a..ccb2560f53 100644 --- a/common/src/app/common/files/migrations.cljc +++ b/common/src/app/common/files/migrations.cljc @@ -865,3 +865,14 @@ (d/update-when container :objects update-vals fix-shape))] (-> data (update :pages-index update-vals update-container)))) + +(defmethod migrate 46 + [data] + (letfn [(update-object [object] + (dissoc object :thumbnail)) + + (update-container [container] + (d/update-when container :objects update-vals update-object))] + (-> data + (update :pages-index update-vals update-container) + (update :components update-vals update-container))))