From f0eff95e18ce375da0128d001a7af2572da5d2a7 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Mon, 15 Apr 2024 17:17:20 +0200 Subject: [PATCH 1/2] :bug: Fix v2 components migration script --- backend/src/app/migrations/v2.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/app/migrations/v2.clj b/backend/src/app/migrations/v2.clj index ff38087c0..1acf7b96b 100644 --- a/backend/src/app/migrations/v2.clj +++ b/backend/src/app/migrations/v2.clj @@ -18,7 +18,7 @@ row_number() OVER (ORDER BY created_at DESC) AS rown FROM team 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") (defn- get-teams @@ -37,7 +37,7 @@ ;; Run teams migration (run! (fn [{:keys [id rown]}] (try - (-> (assoc system ::db/rollback true) + (-> (assoc system ::db/rollback false) (feat/migrate-team! id :rown rown :label "v2-migration" From bb76700c18fffa0ca93ad0721434baa59614d31b Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Mon, 15 Apr 2024 20:55:51 +0200 Subject: [PATCH 2/2] :books: Update CHANGES for 2.0.1 --- CHANGES.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index ed15bda2d..6f85b3336 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # CHANGELOG +## 2.0.1 + +### :bug: Bugs fixed + +- Fix different issues related to components v2 migrations including [Github #4443](https://github.com/penpot/penpot/issues/4443) + ## 2.0.0 - I Just Can't Get Enough ### :rocket: Epics and highlights