mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 04:26:57 +00:00
MINOR - Clean automations_workflow (#17005)
This commit is contained in:
parent
14e475cefe
commit
82228a1098
@ -76,11 +76,14 @@ CREATE TABLE IF NOT EXISTS api_endpoint_entity (
|
||||
INDEX (name)
|
||||
);
|
||||
|
||||
|
||||
-- Clean dangling workflows not removed after test connection
|
||||
truncate automations_workflow;
|
||||
|
||||
-- Remove date, dateTime, time from type_entity, as they are no more om-field-types, instead we have date-cp, time-cp, dateTime-cp as om-field-types
|
||||
DELETE FROM type_entity
|
||||
WHERE name IN ('date', 'dateTime', 'time');
|
||||
|
||||
|
||||
-- Update BigQuery,Bigtable & Datalake model for gcpCredentials to move `gcpConfig` value to `gcpConfig.path`
|
||||
UPDATE dbservice_entity
|
||||
SET json = JSON_INSERT(
|
||||
@ -144,4 +147,4 @@ SET json = JSON_INSERT(
|
||||
JSON_EXTRACT(json, '$.sourceConfig.config.dbtConfigSource.dbtSecurityConfig.gcpConfig.type') OR
|
||||
JSON_EXTRACT(json, '$.sourceConfig.config.dbtConfigSource.dbtSecurityConfig.gcpConfig.externalType') OR
|
||||
JSON_EXTRACT(json, '$.sourceConfig.config.dbtConfigSource.dbtSecurityConfig.gcpConfig.path')
|
||||
) is NULL AND JSON_EXTRACT(json, '$.sourceConfig.config.dbtConfigSource.dbtSecurityConfig.gcpConfig') is not null;
|
||||
) is NULL AND JSON_EXTRACT(json, '$.sourceConfig.config.dbtConfigSource.dbtSecurityConfig.gcpConfig') is not null;
|
||||
|
||||
@ -70,6 +70,10 @@ CREATE TABLE IF NOT EXISTS api_endpoint_entity (
|
||||
UNIQUE (fqnHash)
|
||||
);
|
||||
|
||||
|
||||
-- Clean dangling workflows not removed after test connection
|
||||
truncate automations_workflow;
|
||||
|
||||
-- Remove date, dateTime, time from type_entity, as they are no more om-field-types, instead we have date-cp, time-cp, dateTime-cp as om-field-types
|
||||
DELETE FROM type_entity
|
||||
WHERE name IN ('date', 'dateTime', 'time');
|
||||
@ -133,4 +137,4 @@ SET json = jsonb_set(
|
||||
AND json#>>'{sourceConfig,config,dbtConfigSource,dbtSecurityConfig,gcpConfig}' IS NOT NULL
|
||||
AND json#>>'{sourceConfig,config,dbtConfigSource,dbtSecurityConfig,gcpConfig,type}' IS NULL
|
||||
AND json#>>'{sourceConfig,config,dbtConfigSource,dbtSecurityConfig,gcpConfig,externalType}' IS NULL
|
||||
AND json#>>'{sourceConfig,config,dbtConfigSource,dbtSecurityConfig,gcpConfig,path}' IS NULL;
|
||||
AND json#>>'{sourceConfig,config,dbtConfigSource,dbtSecurityConfig,gcpConfig,path}' IS NULL;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user