Remove multi select usage (#6004)

As per title!

Also, I'm removing an incorrect logic in the enum migration runner that
takes care of the case where we have no defaultValue but non nullable
which is not a valid business case.
This commit is contained in:
Charles Bochet 2024-06-24 16:39:17 +02:00 committed by GitHub
parent 24c31f9b39
commit ad61efe6ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 5 deletions

View File

@ -22,7 +22,6 @@ export const formatFieldMetadataItemsAsFilterDefinitions = ({
FieldMetadataType.Address, FieldMetadataType.Address,
FieldMetadataType.Relation, FieldMetadataType.Relation,
FieldMetadataType.Select, FieldMetadataType.Select,
FieldMetadataType.MultiSelect,
FieldMetadataType.Currency, FieldMetadataType.Currency,
].includes(field.type) ].includes(field.type)
) { ) {

View File

@ -49,10 +49,6 @@ export class WorkspaceMigrationEnumService {
typeof enumValue !== 'string', typeof enumValue !== 'string',
); );
if (!columnDefinition.isNullable && !columnDefinition.defaultValue) {
columnDefinition.defaultValue = serializeDefaultValue(enumValues[0]);
}
const oldColumnName = `${columnDefinition.columnName}_old_${v4()}`; const oldColumnName = `${columnDefinition.columnName}_old_${v4()}`;
// Rename old column // Rename old column