Fix upgrade command 0.42 (#10373)
This commit is contained in:
@ -54,6 +54,7 @@ type ProcessRichTextFieldsArgs = {
|
|||||||
richTextFields: FieldMetadataEntity[];
|
richTextFields: FieldMetadataEntity[];
|
||||||
workspaceId: string;
|
workspaceId: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
@Command({
|
@Command({
|
||||||
name: 'upgrade-0.42:migrate-rich-text-field',
|
name: 'upgrade-0.42:migrate-rich-text-field',
|
||||||
description: 'Migrate RICH_TEXT fields to new composite structure',
|
description: 'Migrate RICH_TEXT fields to new composite structure',
|
||||||
@ -111,6 +112,10 @@ export class MigrateRichTextFieldCommand extends ActiveWorkspacesCommandRunner {
|
|||||||
index,
|
index,
|
||||||
total: workspaceIds.length,
|
total: workspaceIds.length,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await this.twentyORMGlobalManager.destroyDataSourceForWorkspace(
|
||||||
|
workspaceId,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.logger.log(chalk.green('Command completed!'));
|
this.logger.log(chalk.green('Command completed!'));
|
||||||
|
|||||||
Reference in New Issue
Block a user