mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-26 13:31:45 +03:00
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:
parent
24c31f9b39
commit
ad61efe6ed
@ -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)
|
||||||
) {
|
) {
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user