From 68715eb5e581bc74ca914b083ec2851308300c7d Mon Sep 17 00:00:00 2001 From: Sriharsha Chintalapani Date: Mon, 3 Jun 2024 19:12:28 -0700 Subject: [PATCH] Add appType as part of schema in ingestion pipeline --- bootstrap/sql/migrations/native/1.4.2/mysql/schemaChanges.sql | 1 + bootstrap/sql/migrations/native/1.4.2/postgres/schemaChanges.sql | 1 + 2 files changed, 2 insertions(+) diff --git a/bootstrap/sql/migrations/native/1.4.2/mysql/schemaChanges.sql b/bootstrap/sql/migrations/native/1.4.2/mysql/schemaChanges.sql index e69de29bb2d1..c4ed21e371b5 100644 --- a/bootstrap/sql/migrations/native/1.4.2/mysql/schemaChanges.sql +++ b/bootstrap/sql/migrations/native/1.4.2/mysql/schemaChanges.sql @@ -0,0 +1 @@ +ALTER TABLE ingestion_pipeline_entity ADD COLUMN appType VARCHAR(256) GENERATED ALWAYS AS (json ->> '$.sourceConfig.config.appConfig.type') STORED NULL; \ No newline at end of file diff --git a/bootstrap/sql/migrations/native/1.4.2/postgres/schemaChanges.sql b/bootstrap/sql/migrations/native/1.4.2/postgres/schemaChanges.sql index e69de29bb2d1..c1b1cda7abc2 100644 --- a/bootstrap/sql/migrations/native/1.4.2/postgres/schemaChanges.sql +++ b/bootstrap/sql/migrations/native/1.4.2/postgres/schemaChanges.sql @@ -0,0 +1 @@ +ALTER TABLE ingestion_pipeline_entity ADD COLUMN appType VARCHAR(256) GENERATED ALWAYS AS (json -> 'sourceConfig' -> 'config' -> 'appConfig' ->> 'type') STORED NULL; \ No newline at end of file