Fix upgrade command 0.42 (#10373)

This commit is contained in:
Charles Bochet
2025-02-20 20:22:27 +01:00
committed by GitHub
parent c0fda41519
commit 4037fb5860

View File

@ -54,6 +54,7 @@ type ProcessRichTextFieldsArgs = {
richTextFields: FieldMetadataEntity[];
workspaceId: string;
};
@Command({
name: 'upgrade-0.42:migrate-rich-text-field',
description: 'Migrate RICH_TEXT fields to new composite structure',
@ -111,6 +112,10 @@ export class MigrateRichTextFieldCommand extends ActiveWorkspacesCommandRunner {
index,
total: workspaceIds.length,
});
await this.twentyORMGlobalManager.destroyDataSourceForWorkspace(
workspaceId,
);
}
this.logger.log(chalk.green('Command completed!'));