This commit is contained in:
Charles Bochet 2024-08-05 23:11:57 +02:00
parent cbb1454ef8
commit 6752d43d36
7 changed files with 15 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "twenty-emails",
"version": "0.22.0",
"version": "0.23.0",
"description": "",
"author": "",
"private": true,

View File

@ -1,6 +1,6 @@
{
"name": "twenty-front",
"version": "0.22.0",
"version": "0.23.0",
"private": true,
"type": "module",
"scripts": {

View File

@ -1,6 +1,6 @@
{
"name": "twenty-server",
"version": "0.22.0",
"version": "0.23.0",
"description": "",
"author": "",
"private": true,

View File

@ -162,7 +162,7 @@ export class WorkspaceMigrationFieldFactory {
false,
);
if (migrationDifferences.length > 0) {
if (isMigrationNeeded) {
const migrations: WorkspaceMigrationTableAction[] = [
{
name: computeObjectTargetTable(

View File

@ -1,6 +1,6 @@
{
"name": "twenty-ui",
"version": "0.22.0",
"version": "0.23.0",
"type": "module",
"main": "./src/index.ts",
"exports": {

View File

@ -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",

View File

@ -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.