Update boolean field command to skip workspace instead of throwing (#6196)
as per title
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user