Skip to content

The open alternative to Salesforce, designed for AI.

Fix enumMigration not working on long fieldNames (#8708)

Charles Bochet08852dd1b17b
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts
index 843042832bf..5f5834da770 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts
@@ -50,7 +50,7 @@ export class WorkspaceMigrationEnumService {
typeof enumValue !== 'string',
);
- const oldColumnName = `${columnDefinition.columnName}_old_${v4()}`;
+ const oldColumnName = `old_${v4()}`;
// Rename old column
await this.renameColumn(