mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-06 08:37:22 +00:00

* Add missing workflow config status migrations * Moved to Java based migrations to redeploy pipeline * Moved migrations to Java. Updated Listener based on config * Improved update on the migrations
42 lines
1.1 KiB
SQL
42 lines
1.1 KiB
SQL
UPDATE test_definition
|
|
SET
|
|
json = jsonb_insert(
|
|
json,
|
|
'{parameterDefinition, 2}',
|
|
jsonb_build_object(
|
|
'name', 'operator',
|
|
'displayName', 'Operator',
|
|
'description', 'Operator to use to compare the result of the custom SQL query to the threshold.',
|
|
'dataType', 'STRING',
|
|
'required', false,
|
|
'optionValues', jsonb_build_array('==', '>', '>=', '<', '<=', '!=')
|
|
)
|
|
)
|
|
WHERE
|
|
name = 'tableCustomSQLQuery'
|
|
AND NOT jsonb_path_exists(
|
|
json,
|
|
'$.parameterDefinition[*] ? (@.name == "operator")'
|
|
);
|
|
|
|
UPDATE dashboard_service_entity
|
|
SET json = jsonb_set(
|
|
jsonb_set(
|
|
json,
|
|
'{connection,config}',
|
|
(json->'connection'->'config') - 'siteUrl' - 'apiVersion' - 'env'
|
|
),
|
|
'{connection}',
|
|
json->'connection'
|
|
)
|
|
WHERE serviceType = 'Tableau';
|
|
|
|
-- Add runtime: enabled for AutoPilot
|
|
UPDATE apps_marketplace
|
|
SET json = jsonb_set(
|
|
json::jsonb,
|
|
'{runtime,enabled}',
|
|
'true'
|
|
)
|
|
where name = 'AutoPilotApplication';
|