mirror of
https://github.com/penpot/penpot.git
synced 2026-06-01 05:00:17 +00:00
Merge pull request #6443 from penpot/niwinz-develop-feaures-bugfix
🐛 Fix incorrect features asignation after file migration
This commit is contained in:
commit
afcff84e38
@ -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…
x
Reference in New Issue
Block a user