OpenMetadata/bootstrap/sql/migrations/native/1.10.3/mysql/postDataMigrationSQLScript.sql
Teddy 30d0b0c04a
MINOR: dbt migration fix (#23980)
* fix: migration

* fix: playwright test DBT -> dbt
2025-10-23 12:54:34 +02:00

9 lines
294 B
SQL

UPDATE test_definition
SET json = JSON_ARRAY_INSERT(
json,
CONCAT('$.supportedDataTypes[', JSON_LENGTH(json, '$.supportedDataTypes'), ']'),
'NUMERIC'
)
WHERE JSON_CONTAINS(json->'$.supportedDataTypes', '"NUMBER"')
AND NOT JSON_CONTAINS(json->'$.supportedDataTypes', '"NUMERIC"');