Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet committed Aug 5, 2024
1 parent cbb1454 commit 6752d43
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/twenty-emails/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twenty-emails",
"version": "0.22.0",
"version": "0.23.0",
"description": "",
"author": "",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/twenty-front/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twenty-front",
"version": "0.22.0",
"version": "0.23.0",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/twenty-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twenty-server",
"version": "0.22.0",
"version": "0.23.0",
"description": "",
"author": "",
"private": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class WorkspaceMigrationFieldFactory {
false,
);

if (migrationDifferences.length > 0) {
if (isMigrationNeeded) {
const migrations: WorkspaceMigrationTableAction[] = [
{
name: computeObjectTargetTable(
Expand Down
2 changes: 1 addition & 1 deletion packages/twenty-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twenty-ui",
"version": "0.22.0",
"version": "0.23.0",
"type": "module",
"main": "./src/index.ts",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/twenty-website/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6752d43

Please sign in to comment.