mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-12 03:29:53 +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
36 lines
974 B
SQL
36 lines
974 B
SQL
UPDATE test_definition
|
|
SET json = JSON_ARRAY_INSERT(
|
|
json,
|
|
'$.parameterDefinition[2]',
|
|
JSON_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', JSON_ARRAY('==', '>', '>=', '<', '<=', '!=')
|
|
)
|
|
)
|
|
WHERE NOT JSON_CONTAINS(
|
|
JSON_EXTRACT(json, '$.parameterDefinition[*].name'),
|
|
JSON_QUOTE('operator')
|
|
) AND name = 'tableCustomSQLQuery';
|
|
|
|
UPDATE dashboard_service_entity
|
|
SET json = JSON_REMOVE(
|
|
json,
|
|
'$.connection.config.siteUrl',
|
|
'$.connection.config.apiVersion',
|
|
'$.connection.config.env'
|
|
)
|
|
WHERE serviceType = 'Tableau';
|
|
|
|
-- Add runtime: enabled for AutoPilot
|
|
UPDATE apps_marketplace
|
|
SET json = JSON_SET(
|
|
json,
|
|
'$.runtime.enabled',
|
|
true
|
|
)
|
|
WHERE name = 'AutoPilotApplication';
|