From 3be05641fa4c48d53991230078ad8f6727f858b6 Mon Sep 17 00:00:00 2001 From: Paul Rastoin <45004772+prastoin@users.noreply.github.com> Date: Sun, 25 Jan 2026 19:48:53 +0100 Subject: [PATCH] Fix upgrade command order `backfillStandardPageLayoutsCommand` (#17430) # Introduction `backfillStandardPageLayoutsCommand` expects field and object metadata to have been identified in prior to be run https://github.com/twentyhq/twenty/issues/17413#issuecomment-3796933563 --- .../commands/upgrade-version-command/upgrade.command.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/twenty-server/src/database/commands/upgrade-version-command/upgrade.command.ts b/packages/twenty-server/src/database/commands/upgrade-version-command/upgrade.command.ts index 09fc327337..077a1eda28 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version-command/upgrade.command.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version-command/upgrade.command.ts @@ -28,10 +28,10 @@ import { IdentifyAgentMetadataCommand } from 'src/database/commands/upgrade-vers import { IdentifyFieldMetadataCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-identify-field-metadata.command'; import { IdentifyIndexMetadataCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-identify-index-metadata.command'; import { IdentifyObjectMetadataCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-identify-object-metadata.command'; +import { IdentifyRemainingEntitiesMetadataCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-identify-remaining-entities-metadata.command'; import { IdentifyRoleMetadataCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-identify-role-metadata.command'; import { IdentifyViewFieldMetadataCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-identify-view-field-metadata.command'; import { IdentifyViewFilterMetadataCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-identify-view-filter-metadata.command'; -import { IdentifyRemainingEntitiesMetadataCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-identify-remaining-entities-metadata.command'; import { IdentifyViewGroupMetadataCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-identify-view-group-metadata.command'; import { IdentifyViewMetadataCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-identify-view-metadata.command'; import { MakeAgentUniversalIdentifierAndApplicationIdNotNullableMigrationCommand } from 'src/database/commands/upgrade-version-command/1-16/1-16-make-agent-universal-identifier-and-application-id-not-nullable-migration.command'; @@ -146,8 +146,6 @@ export class UpgradeCommand extends UpgradeCommandRunner { const commands_1160: VersionCommands = [ this.updateTaskOnDeleteActionCommand, - this.backfillOpportunityOwnerFieldCommand, - this.backfillStandardPageLayoutsCommand, this.identifyAgentMetadataCommand, this.identifyFieldMetadataCommand, this.identifyObjectMetadataCommand, @@ -157,6 +155,8 @@ export class UpgradeCommand extends UpgradeCommandRunner { this.identifyViewFilterMetadataCommand, this.identifyViewGroupMetadataCommand, this.identifyIndexMetadataCommand, + this.backfillOpportunityOwnerFieldCommand, + this.backfillStandardPageLayoutsCommand, this .makeAgentUniversalIdentifierAndApplicationIdNotNullableMigrationCommand, this