OpenMetadata/bootstrap/sql/migrations/native/1.10.3/postgres/postDataMigrationSQLScript.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
536 B
MySQL
Raw Normal View History

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;