diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-record-position-backfill.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-record-position-backfill.command.ts index b889c904cd..53c26618d3 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-record-position-backfill.command.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-record-position-backfill.command.ts @@ -9,7 +9,7 @@ import { RecordPositionBackfillService } from 'src/engine/api/graphql/workspace- import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity'; @Command({ - name: 'migrate-0.40:backfill-record-position', + name: 'upgrade-0.40:record-position-backfill', description: 'Backfill record position', }) export class RecordPositionBackfillCommand extends ActiveWorkspacesCommandRunner { diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-upgrade-version.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-upgrade-version.command.ts index f0063834a5..e60b537bb3 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-upgrade-version.command.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version/0-40/0-40-upgrade-version.command.ts @@ -38,6 +38,12 @@ export class UpgradeTo0_40Command extends ActiveWorkspacesCommandRunner { 'Running command to upgrade to 0.40: must start with phone calling code otherwise SyncMetadata will fail', ); + await this.recordPositionBackfillCommand.executeActiveWorkspacesCommand( + passedParam, + options, + workspaceIds, + ); + await this.phoneCallingCodeCreateColumnCommand.executeActiveWorkspacesCommand( passedParam, options, @@ -50,12 +56,6 @@ export class UpgradeTo0_40Command extends ActiveWorkspacesCommandRunner { workspaceIds, ); - await this.recordPositionBackfillCommand.executeActiveWorkspacesCommand( - passedParam, - options, - workspaceIds, - ); - await this.viewGroupNoValueBackfillCommand.executeActiveWorkspacesCommand( passedParam, options, diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/comparators/workspace-field.comparator.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/comparators/workspace-field.comparator.ts index edc92cd390..863a124968 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/comparators/workspace-field.comparator.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/comparators/workspace-field.comparator.ts @@ -26,7 +26,6 @@ const commonFieldPropertiesToIgnore = [ 'gate', 'asExpression', 'generatedType', - 'defaultValue', 'isLabelSyncedWithName', ];