From 85ed009daadc9a7a483397e2d078dc08f623fb59 Mon Sep 17 00:00:00 2001 From: Pere Miquel Brull Date: Sun, 20 Nov 2022 06:07:26 +0100 Subject: [PATCH] Fix openmetadata connection migration (#8891) --- .../v006__create_db_connection_info.sql | 4 ++++ .../org.postgresql.Driver/v006__create_db_connection_info.sql | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/bootstrap/sql/com.mysql.cj.jdbc.Driver/v006__create_db_connection_info.sql b/bootstrap/sql/com.mysql.cj.jdbc.Driver/v006__create_db_connection_info.sql index 75e25b398e8..7f9dc4fef31 100644 --- a/bootstrap/sql/com.mysql.cj.jdbc.Driver/v006__create_db_connection_info.sql +++ b/bootstrap/sql/com.mysql.cj.jdbc.Driver/v006__create_db_connection_info.sql @@ -120,3 +120,7 @@ SET json = JSON_REMOVE(json ,'$.deployed'); UPDATE ingestion_pipeline_entity SET json = JSON_INSERT(json ,'$.deployed', 'true'); + +-- We removed the supportsMetadataExtraction field in the `OpenMetadataConnection` object being used in IngestionPipelines +UPDATE ingestion_pipeline_entity +SET json = JSON_REMOVE(json ,'$.openMetadataServerConnection.supportsMetadataExtraction'); diff --git a/bootstrap/sql/org.postgresql.Driver/v006__create_db_connection_info.sql b/bootstrap/sql/org.postgresql.Driver/v006__create_db_connection_info.sql index 0adbaf1c852..5a8c25aae47 100644 --- a/bootstrap/sql/org.postgresql.Driver/v006__create_db_connection_info.sql +++ b/bootstrap/sql/org.postgresql.Driver/v006__create_db_connection_info.sql @@ -148,3 +148,7 @@ SET json = json::jsonb #- '{deployed}'; UPDATE ingestion_pipeline_entity SET json = jsonb_set(json::jsonb, '{deployed}', 'true'::jsonb, true); + +-- We removed the supportsMetadataExtraction field in the `OpenMetadataConnection` object being used in IngestionPipelines +UPDATE ingestion_pipeline_entity +SET json = json::jsonb #- '{openMetadataServerConnection,supportsMetadataExtraction}';