Make the bool-content normalize migration idempotent

This commit is contained in:
Andrey Antukh 2025-06-25 13:26:32 +02:00
parent 7f2e819789
commit 15c91a5de5

View file

@ -1284,7 +1284,8 @@
;; rollback, we still need to perform an other migration
;; for properly delete the bool-content prop from shapes
;; once the know the migration was OK
(if (cfh/bool-shape? object)
(if (and (cfh/bool-shape? object)
(not (contains? object :content)))
(if-let [content (:bool-content object)]
(assoc object :content content)
object)