Fix postgres migrations & Update maven CI triggers (#11087)

* Fix postgres migrations

* Update workflow trigger
This commit is contained in:
Pere Miquel Brull 2023-04-17 13:43:59 +02:00 committed by GitHub
parent b82abd5047
commit b34786f6d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View File

@ -24,6 +24,10 @@ on:
- "openmetadata-dist/**"
- "openmetadata-clients/**"
- "common/**"
- "pom.xml"
- "yarn.lock"
- "Makefile"
- "bootstrap/**"
jobs:
test:

View File

@ -26,6 +26,7 @@ on:
- "pom.xml"
- "yarn.lock"
- "Makefile"
- "bootstrap/**"
pull_request_target:
types: [labeled, opened, synchronize, reopened]
paths:
@ -38,6 +39,7 @@ on:
- "pom.xml"
- "yarn.lock"
- "Makefile"
- "bootstrap/**"
permissions:
contents: read

View File

@ -188,15 +188,15 @@ and json#>'{connection,config,personalAccessTokenSecret}' is not null;
-- Removed property from metadataService.json
UPDATE metadata_service_entity
SET json = json::jsonb #- '{,allowServiceCreation}'
SET json = json::jsonb #- '{allowServiceCreation}'
WHERE serviceType in ('Amundsen', 'Atlas', 'MetadataES', 'OpenMetadata');
UPDATE metadata_service_entity
SET json = JSONB_SET(json::jsonb, '{provider}', 'system')
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/')
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/';
AND json#>'{connection,config,awsConfig,endPointURL}' = '"https://glue.<region_name>.amazonaws.com/"';