mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-18 14:06:59 +00:00
Fix migrations (#11083)
This commit is contained in:
parent
a3ce1dfa4e
commit
1cabfc99ca
@ -185,3 +185,18 @@ JSON_OBJECT(
|
||||
WHERE serviceType = 'Tableau'
|
||||
AND JSON_EXTRACT(json, '$.connection.config.personalAccessTokenName') is not null
|
||||
AND JSON_EXTRACT(json, '$.connection.config.personalAccessTokenSecret') is not null;
|
||||
|
||||
-- Removed property from metadataService.json
|
||||
UPDATE metadata_service_entity
|
||||
SET json = JSON_REMOVE(json, '$.allowServiceCreation')
|
||||
WHERE serviceType in ('Amundsen', 'Atlas', 'MetadataES', 'OpenMetadata');
|
||||
|
||||
UPDATE metadata_service_entity
|
||||
SET json = JSON_INSERT(json, '$.provider', 'system')
|
||||
WHERE name = 'OpenMetadata';
|
||||
|
||||
-- Fix Glue sample data endpoint URL to be a correct URI
|
||||
UPDATE dbservice_entity
|
||||
SET json = JSON_REPLACE(json, '$.connection.config.awsConfig.endPointURL', 'https://glue.region_name.amazonaws.com/')
|
||||
WHERE serviceType = 'Glue'
|
||||
AND JSON_EXTRACT(json, '$.connection.config.awsConfig.endPointURL') = 'https://glue.<region_name>.amazonaws.com/';
|
||||
|
@ -185,3 +185,18 @@ jsonb_build_object('authType',jsonb_build_object(
|
||||
where servicetype = 'Tableau'
|
||||
and json#>'{connection,config,personalAccessTokenName}' is not null
|
||||
and json#>'{connection,config,personalAccessTokenSecret}' is not null;
|
||||
|
||||
-- Removed property from metadataService.json
|
||||
UPDATE metadata_service_entity
|
||||
SET json = json::jsonb #- '{,allowServiceCreation}'
|
||||
WHERE serviceType in ('Amundsen', 'Atlas', 'MetadataES', 'OpenMetadata');
|
||||
|
||||
UPDATE metadata_service_entity
|
||||
SET json = JSONB_SET(json::jsonb, '{provider}', 'system')
|
||||
WHERE name = 'OpenMetadata';
|
||||
|
||||
-- Fix Glue sample data endpoint URL to be a correct URI
|
||||
UPDATE dbservice_entity
|
||||
SET json = JSONB_SET(json::jsonb, '{connection,config,awsConfig,endPointURL}', 'https://glue.region_name.amazonaws.com/')
|
||||
WHERE serviceType = 'Glue'
|
||||
AND json#>'{connection,config,awsConfig,endPointURL}' = 'https://glue.<region_name>.amazonaws.com/';
|
||||
|
Loading…
x
Reference in New Issue
Block a user