2023-08-10 16:47:37 -07:00
|
|
|
-- Rename includeTempTables in snowflake to includeTransientTables
|
2023-07-13 22:55:46 +05:30
|
|
|
|
|
|
|
UPDATE dbservice_entity
|
|
|
|
SET json = jsonb_set(json::jsonb #- '{connection,config,includeTempTables}', '{connection,config,includeTransientTables}',
|
|
|
|
json#>'{connection,config,includeTempTables}')
|
|
|
|
where serviceType in ('Snowflake') and json#>'{connection,config,includeTempTables}' is not null ;
|
|
|
|
|
|
|
|
|
2023-07-11 17:38:32 +02:00
|
|
|
update dbservice_entity
|
|
|
|
set json = jsonb_set(json::jsonb, '{connection,config,scheme}', '"hive"')
|
2023-08-09 09:41:41 +02:00
|
|
|
where json#>>'{connection,config,scheme}' in ('impala', 'impala4')
|
|
|
|
and serviceType = 'Hive';
|
2023-07-13 14:26:28 +05:30
|
|
|
|
|
|
|
-- remove the dataModel references from Data Models
|
|
|
|
UPDATE dashboard_data_model_entity SET json = json #- '{dataModels}';
|
2023-07-26 10:43:24 +05:30
|
|
|
|
2023-07-27 20:42:10 -07:00
|
|
|
-- migrate ingestAllDatabases in mssql
|
2023-07-26 10:43:24 +05:30
|
|
|
UPDATE dbservice_entity de2
|
|
|
|
SET json = JSONB_SET(
|
|
|
|
json || JSONB_SET(json,'{connection,config}', json#>'{connection,config}'||
|
|
|
|
jsonb_build_object('database',
|
|
|
|
(SELECT json->>'name'
|
|
|
|
FROM database_entity de
|
|
|
|
WHERE id = (SELECT er.toId
|
|
|
|
FROM entity_relationship er
|
|
|
|
WHERE er.fromId = de2.id
|
|
|
|
AND er.toEntity = 'database'
|
|
|
|
LIMIT 1)
|
|
|
|
)
|
|
|
|
)),
|
|
|
|
'{connection,config,ingestAllDatabases}',
|
|
|
|
'true'::jsonb
|
|
|
|
)
|
|
|
|
WHERE de2.serviceType = 'Mssql'
|
|
|
|
AND json->>'{connection,config,database}' IS NULL;
|
2023-07-27 20:42:10 -07:00
|
|
|
|
2023-07-31 19:26:03 +05:30
|
|
|
-- remove keyfile from clickhouse
|
|
|
|
UPDATE dbservice_entity
|
|
|
|
SET json = json #-'{connection,config,keyfile}'
|
|
|
|
WHERE serviceType = 'Clickhouse';
|
2023-08-01 16:15:56 +02:00
|
|
|
|
|
|
|
-- Clean old test connections
|
|
|
|
TRUNCATE automations_workflow;
|