| 
									
										
										
										
											2025-04-30 14:57:20 +05:30
										 |  |  | 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")' 
 | 
					
						
							| 
									
										
										
										
											2025-05-15 17:48:39 +05:30
										 |  |  |   );
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | UPDATE dashboard_service_entity
 | 
					
						
							|  |  |  | SET json = jsonb_set(
 | 
					
						
							| 
									
										
										
										
											2025-05-23 16:39:56 +05:30
										 |  |  |     json,
 | 
					
						
							|  |  |  |     '{connection,config}',
 | 
					
						
							|  |  |  |     (json->'connection'->'config') - 'siteUrl' - 'apiVersion' - 'env'
 | 
					
						
							| 
									
										
										
										
											2025-05-15 17:48:39 +05:30
										 |  |  | )
 | 
					
						
							| 
									
										
										
										
											2025-05-23 16:39:56 +05:30
										 |  |  | WHERE serviceType = 'Tableau'
 | 
					
						
							| 
									
										
										
										
											2025-05-23 17:13:45 +05:30
										 |  |  |   AND json ?? 'connection'
 | 
					
						
							|  |  |  |   AND json->'connection' ?? 'config';
 | 
					
						
							| 
									
										
										
										
											2025-05-19 10:54:57 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | -- Add runtime: enabled for AutoPilot
 | 
					
						
							|  |  |  | UPDATE apps_marketplace
 | 
					
						
							| 
									
										
										
										
											2025-05-22 15:13:00 +02:00
										 |  |  | SET json =
 | 
					
						
							|  |  |  |   CASE
 | 
					
						
							|  |  |  |     WHEN json::jsonb -> 'runtime' IS NULL THEN
 | 
					
						
							|  |  |  |       jsonb_set(
 | 
					
						
							|  |  |  |         json::jsonb,
 | 
					
						
							|  |  |  |         '{runtime}',
 | 
					
						
							|  |  |  |         jsonb_build_object('enabled', true),
 | 
					
						
							|  |  |  |         true
 | 
					
						
							|  |  |  |       )
 | 
					
						
							|  |  |  |     ELSE
 | 
					
						
							|  |  |  |       jsonb_set(
 | 
					
						
							|  |  |  |         json::jsonb,
 | 
					
						
							|  |  |  |         '{runtime,enabled}',
 | 
					
						
							|  |  |  |         'true',
 | 
					
						
							|  |  |  |         true
 | 
					
						
							|  |  |  |       )
 | 
					
						
							|  |  |  |   END
 | 
					
						
							|  |  |  | WHERE name = 'AutoPilotApplication';
 | 
					
						
							| 
									
										
										
										
											2025-05-21 16:22:28 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | -- Update workflow settings with default values if present
 | 
					
						
							|  |  |  | UPDATE openmetadata_settings
 | 
					
						
							|  |  |  | SET json = jsonb_set(
 | 
					
						
							|  |  |  |               jsonb_set(
 | 
					
						
							|  |  |  |                 jsonb_set(
 | 
					
						
							|  |  |  |                   json,
 | 
					
						
							|  |  |  |                   '{executorConfiguration,corePoolSize}',
 | 
					
						
							|  |  |  |                   '10',
 | 
					
						
							|  |  |  |                   true
 | 
					
						
							|  |  |  |                 ),
 | 
					
						
							|  |  |  |                 '{executorConfiguration,maxPoolSize}',
 | 
					
						
							|  |  |  |                 '20',
 | 
					
						
							|  |  |  |                 true
 | 
					
						
							|  |  |  |               ),
 | 
					
						
							|  |  |  |               '{executorConfiguration,jobLockTimeInMillis}',
 | 
					
						
							|  |  |  |               '1296000000',
 | 
					
						
							|  |  |  |               true
 | 
					
						
							|  |  |  |            )
 | 
					
						
							|  |  |  | WHERE configType = 'workflowSettings';
 |