OpenMetadata/bootstrap/sql/migrations/native/1.10.3/postgres/postDataMigrationSQLScript.sql
2025-10-20 16:16:39 +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);