mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 03:32:36 +02:00
🐛 Fix incorrect features asignation after file migration
This commit is contained in:
parent
23bde76192
commit
8fa7fa8c4b
1 changed files with 2 additions and 2 deletions
|
@ -99,13 +99,13 @@
|
||||||
(if (nil? migrations)
|
(if (nil? migrations)
|
||||||
(generate-migrations-from-version version)
|
(generate-migrations-from-version version)
|
||||||
migrations)))
|
migrations)))
|
||||||
(update :features (fnil into #{}) (deref cfeat/*new*))
|
|
||||||
;; NOTE: in some future we can consider to apply
|
;; NOTE: in some future we can consider to apply
|
||||||
;; a migration to the whole database and remove
|
;; a migration to the whole database and remove
|
||||||
;; this code from this function that executes on
|
;; this code from this function that executes on
|
||||||
;; each file migration operation
|
;; each file migration operation
|
||||||
(update :features cfeat/migrate-legacy-features)
|
(update :features cfeat/migrate-legacy-features)
|
||||||
(migrate)))))
|
(migrate)
|
||||||
|
(update :features (fnil into #{}) (deref cfeat/*new*))))))
|
||||||
|
|
||||||
(defn migrated?
|
(defn migrated?
|
||||||
[file]
|
[file]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue