Fix default value fixer script (#5144)

While trying to migrate a workspace from 0.3.3 to 0.10.0, we've faced an
issue with the script to migrate default-values format.
This PR fixes it.

We really need to add tests on this part ;)
This commit is contained in:
Charles Bochet
2024-04-24 14:50:57 +02:00
committed by GitHub
parent b634057fdd
commit b3e1d6becf

View File

@ -276,7 +276,7 @@ export class FieldMetadataHealthService {
!validateDefaultValueForType( !validateDefaultValueForType(
fieldMetadata.type, fieldMetadata.type,
fieldMetadata.defaultValue, fieldMetadata.defaultValue,
) ).isValid
) { ) {
issues.push({ issues.push({
type: WorkspaceHealthIssueType.COLUMN_DEFAULT_VALUE_NOT_VALID, type: WorkspaceHealthIssueType.COLUMN_DEFAULT_VALUE_NOT_VALID,