Fix composite type update migration builder (#9959)

This commit is contained in:
Charles Bochet
2025-01-31 16:34:42 +00:00
committed by GitHub
parent ae62789159
commit fa3ea4bb68
2 changed files with 20 additions and 16 deletions
@@ -97,12 +97,6 @@ export class AddContextToActorCompositeTypeCommand extends ActiveWorkspacesComma
field.object.nameSingular,
);
if (!dryRun) {
await this.workspaceMetadataVersionService.incrementMetadataVersion(
workspaceId,
);
}
if (!dryRun) {
const rowsToUpdate = await fieldRepository.update(
{
@@ -124,6 +118,12 @@ export class AddContextToActorCompositeTypeCommand extends ActiveWorkspacesComma
);
}
}
if (!dryRun) {
await this.workspaceMetadataVersionService.incrementMetadataVersion(
workspaceId,
);
}
}
private async addContextColumn(