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