OpenMetadata/bootstrap/sql/migrations/native/1.10.3/postgres/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

21 lines
536 B
SQL

UPDATE test_definition
SET json = jsonb_set(
json::jsonb,
'{supportedDataTypes}',
(json->'supportedDataTypes')::jsonb || '"NUMERIC"'::jsonb,
true
)
WHERE json->'supportedDataTypes' @> '"NUMBER"'::jsonb
AND NOT (json->'supportedDataTypes' @> '"NUMERIC"'::jsonb);
UPDATE test_definition
SET json = jsonb_set(
json::jsonb,
'{testPlatforms}',
REPLACE(
(json::jsonb -> 'testPlatforms')::text,
'"DBT"',
'"dbt"'
)::jsonb
)::json
WHERE json::jsonb -> 'testPlatforms' @> '"DBT"'::jsonb;