Update boolean field command to skip workspace instead of throwing (#6196)

as per title
This commit is contained in:
Marie
2024-07-10 11:56:30 +02:00
committed by GitHub
parent 9683a19287
commit 02e5c5ea97

View File

@ -76,9 +76,10 @@ export class UpdateBooleanFieldsNullDefaultValuesAndNullValuesCommand extends Co
);
if (!dataSourceMetadata) {
throw new Error(
this.logger.log(
`Could not find dataSourceMetadata for workspace ${workspaceId}`,
);
continue;
}
const workspaceDataSource =
@ -115,9 +116,10 @@ export class UpdateBooleanFieldsNullDefaultValuesAndNullValuesCommand extends Co
for (const booleanField of booleanFieldsWithoutDefaultValue) {
if (!booleanField.object) {
throw new Error(
this.logger.log(
`Could not find objectMetadataItem for field ${booleanField.id}`,
);
continue;
}
// Could be done via a batch update but it's safer in this context to run it sequentially with the ALTER TABLE