OpenMetadata/bootstrap/sql/migrations/native/1.10.3/mysql/postDataMigrationSQLScript.sql
Teddy e103a8c805
MINOR: Fix uppercase DBT to lowercase dbt (#23900)
* fix: uppercase DBT to lowercase dbt

* fix: change DBT to lowercase dbt in TestPlatform enum

* fix: fix dbt syntax in valueMax

---------

Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.com>
2025-10-21 07:59:09 +02:00

20 lines
541 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"');
UPDATE test_definition
SET json = JSON_SET(
json,
'$.testPlatforms',
CAST(REPLACE(
JSON_EXTRACT(json, '$.testPlatforms'),
'"DBT"',
'"dbt"'
) AS JSON)
)
WHERE JSON_CONTAINS(json, '"DBT"', '$.testPlatforms');