fix - remove Untitled default value on standard name field (#14282)

Enable unique constraint creation on name standard field. 
Null values are handled in front with 'Untitled'.

Need to migrate fieldMetadata default value on all custom objects ?

Tested : 
- Toggle on/off uniqueness on standard name field of standard/custom
object
- Create new custom text field and toggle on/off uniqueness
This commit is contained in:
Etienne
2025-09-03 14:45:34 +02:00
committed by GitHub
parent 7e7837abf3
commit 6ee41f33c6
3 changed files with 3 additions and 3 deletions
@@ -39,7 +39,7 @@ export const buildDefaultFieldsForCustomObject = (
isCustom: false,
isUIReadOnly: false,
workspaceId,
defaultValue: "'Untitled'",
defaultValue: "''",
},
{
id: v4(),
@@ -67,7 +67,7 @@ export const buildDefaultFlatFieldMetadatasForCustomObject = ({
isCustom: false,
isSystem: false,
isUIReadOnly: false,
defaultValue: "'Untitled'",
defaultValue: "''",
createdAt,
updatedAt: createdAt,
@@ -58,7 +58,7 @@ export class WorkspaceMigrationFactory {
{
factory: this.basicColumnActionFactory,
options: {
defaultValue: '',
defaultValue: "''",
},
},
],