mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🐛 Fix v2 components migration script
This commit is contained in:
committed by
Andrey Antukh
parent
f531a5c323
commit
f0eff95e18
@@ -18,7 +18,7 @@
|
|||||||
row_number() OVER (ORDER BY created_at DESC) AS rown
|
row_number() OVER (ORDER BY created_at DESC) AS rown
|
||||||
FROM team
|
FROM team
|
||||||
WHERE deleted_at IS NULL
|
WHERE deleted_at IS NULL
|
||||||
AND (features <@ '{components/v2}' OR features IS NULL)
|
AND (not (features @> '{components/v2}') OR features IS NULL)
|
||||||
ORDER BY created_at DESC")
|
ORDER BY created_at DESC")
|
||||||
|
|
||||||
(defn- get-teams
|
(defn- get-teams
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
;; Run teams migration
|
;; Run teams migration
|
||||||
(run! (fn [{:keys [id rown]}]
|
(run! (fn [{:keys [id rown]}]
|
||||||
(try
|
(try
|
||||||
(-> (assoc system ::db/rollback true)
|
(-> (assoc system ::db/rollback false)
|
||||||
(feat/migrate-team! id
|
(feat/migrate-team! id
|
||||||
:rown rown
|
:rown rown
|
||||||
:label "v2-migration"
|
:label "v2-migration"
|
||||||
|
|||||||
Reference in New Issue
Block a user