From 6752d43d36139c06c6ae6d85109983bb9facdbc8 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Mon, 5 Aug 2024 23:11:57 +0200 Subject: [PATCH] Fix --- packages/twenty-emails/package.json | 2 +- packages/twenty-front/package.json | 2 +- packages/twenty-server/package.json | 2 +- .../factories/workspace-migration-field.factory.ts | 2 +- packages/twenty-ui/package.json | 2 +- packages/twenty-website/package.json | 2 +- .../content/developers/self-hosting/upgrade-guide.mdx | 9 +++++++++ 7 files changed, 15 insertions(+), 6 deletions(-) diff --git a/packages/twenty-emails/package.json b/packages/twenty-emails/package.json index 8a34cfd244ea..597d23f2cfda 100644 --- a/packages/twenty-emails/package.json +++ b/packages/twenty-emails/package.json @@ -1,6 +1,6 @@ { "name": "twenty-emails", - "version": "0.22.0", + "version": "0.23.0", "description": "", "author": "", "private": true, diff --git a/packages/twenty-front/package.json b/packages/twenty-front/package.json index 8ff1595fab09..a659a0056907 100644 --- a/packages/twenty-front/package.json +++ b/packages/twenty-front/package.json @@ -1,6 +1,6 @@ { "name": "twenty-front", - "version": "0.22.0", + "version": "0.23.0", "private": true, "type": "module", "scripts": { diff --git a/packages/twenty-server/package.json b/packages/twenty-server/package.json index f389bc07a96c..1b7eca8021e8 100644 --- a/packages/twenty-server/package.json +++ b/packages/twenty-server/package.json @@ -1,6 +1,6 @@ { "name": "twenty-server", - "version": "0.22.0", + "version": "0.23.0", "description": "", "author": "", "private": true, diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-builder/factories/workspace-migration-field.factory.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-builder/factories/workspace-migration-field.factory.ts index 234609fa54eb..a79838dfbf16 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-builder/factories/workspace-migration-field.factory.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-builder/factories/workspace-migration-field.factory.ts @@ -162,7 +162,7 @@ export class WorkspaceMigrationFieldFactory { false, ); - if (migrationDifferences.length > 0) { + if (isMigrationNeeded) { const migrations: WorkspaceMigrationTableAction[] = [ { name: computeObjectTargetTable( diff --git a/packages/twenty-ui/package.json b/packages/twenty-ui/package.json index a0788e34553f..b5b103136889 100644 --- a/packages/twenty-ui/package.json +++ b/packages/twenty-ui/package.json @@ -1,6 +1,6 @@ { "name": "twenty-ui", - "version": "0.22.0", + "version": "0.23.0", "type": "module", "main": "./src/index.ts", "exports": { diff --git a/packages/twenty-website/package.json b/packages/twenty-website/package.json index fd47048b5a4f..20bdc9f677f4 100644 --- a/packages/twenty-website/package.json +++ b/packages/twenty-website/package.json @@ -1,6 +1,6 @@ { "name": "twenty-website", - "version": "0.22.0", + "version": "0.23.0", "private": true, "scripts": { "nx": "NX_DEFAULT_PROJECT=twenty-website node ../../node_modules/nx/bin/nx.js", diff --git a/packages/twenty-website/src/content/developers/self-hosting/upgrade-guide.mdx b/packages/twenty-website/src/content/developers/self-hosting/upgrade-guide.mdx index 69528bed37d7..caeb20716755 100644 --- a/packages/twenty-website/src/content/developers/self-hosting/upgrade-guide.mdx +++ b/packages/twenty-website/src/content/developers/self-hosting/upgrade-guide.mdx @@ -30,6 +30,15 @@ yarn command:prod workspace:sync-metadata -f yarn command:prod upgrade-0.22 ``` +## v0.22.0 to v0.23.0 + +Run the following commands: + +``` +yarn database:migrate:prod +yarn command:prod upgrade-0.23 +``` + The `yarn database:migrate:prod` command will apply the migrations to the Database. The `yarn command:prod workspace:sync-metadata -f` command will sync the definition of standard objects to the metadata tables and apply to required migrations to existing workspaces. The `yarn command:prod upgrade-0.22` command will apply specific data transformations to adapt to the new object defaultRequestInstrumentationOptions.