From 270e76bdfb7df03daa59f46ffbe4ba82fca58877 Mon Sep 17 00:00:00 2001 From: Mohit Yadav <105265192+mohityadav766@users.noreply.github.com> Date: Tue, 30 Jan 2024 13:09:44 +0530 Subject: [PATCH] [Fix] Migrate Ingestion pipeline for Data Insights to be of user provider type (#14942) * Data Insight Report Link Fix * Make the Data Insights Pipeline as User --- .../sql/migrations/native/1.3.0/mysql/schemaChanges.sql | 5 ++++- .../sql/migrations/native/1.3.0/postgres/schemaChanges.sql | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bootstrap/sql/migrations/native/1.3.0/mysql/schemaChanges.sql b/bootstrap/sql/migrations/native/1.3.0/mysql/schemaChanges.sql index a9b94bd1c30..50d6aff17f8 100644 --- a/bootstrap/sql/migrations/native/1.3.0/mysql/schemaChanges.sql +++ b/bootstrap/sql/migrations/native/1.3.0/mysql/schemaChanges.sql @@ -167,4 +167,7 @@ where serviceType = 'Mssql'; DELETE FROM event_subscription_entity; DELETE FROM change_event_consumers; -DELETE FROM consumers_dlq; \ No newline at end of file +DELETE FROM consumers_dlq; + +UPDATE ingestion_pipeline_entity SET json = JSON_SET(json, '$.provider', 'user') +WHERE JSON_EXTRACT(json, '$.name') = 'OpenMetadata_dataInsight'; \ No newline at end of file diff --git a/bootstrap/sql/migrations/native/1.3.0/postgres/schemaChanges.sql b/bootstrap/sql/migrations/native/1.3.0/postgres/schemaChanges.sql index b33dffc9d21..1089b255a5b 100644 --- a/bootstrap/sql/migrations/native/1.3.0/postgres/schemaChanges.sql +++ b/bootstrap/sql/migrations/native/1.3.0/postgres/schemaChanges.sql @@ -180,3 +180,6 @@ where serviceType = 'Mssql'; DELETE FROM event_subscription_entity; DELETE FROM change_event_consumers; DELETE FROM consumers_dlq; + +UPDATE ingestion_pipeline_entity SET json = JSONB_SET(json::jsonb, '{provider}', '"user"', true) +WHERE json->>'name' = 'OpenMetadata_dataInsight'; \ No newline at end of file