mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-29 09:42:23 +00:00
* 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>
20 lines
541 B
SQL
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'); |