From ffe4aa319f1e9d21527720e88b57479291c3b41d Mon Sep 17 00:00:00 2001 From: Pere Miquel Brull Date: Tue, 19 Dec 2023 16:53:23 +0100 Subject: [PATCH] MINOR - Truncate automations_workflow (#14446) --- .../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 0b6e2c6dea7..e75a2cda010 100644 --- a/bootstrap/sql/migrations/native/1.3.0/mysql/schemaChanges.sql +++ b/bootstrap/sql/migrations/native/1.3.0/mysql/schemaChanges.sql @@ -36,4 +36,7 @@ where name = 'DataInsightsApplication'; update metadata_service_entity set json = JSON_REPLACE(json, '$.connection.config.secretsManagerProvider', 'db') where name = 'OpenMetadata' - and JSON_EXTRACT(json, '$.connection.config.secretsManagerProvider') = 'noop'; \ No newline at end of file + and JSON_EXTRACT(json, '$.connection.config.secretsManagerProvider') = 'noop'; + +-- Clean old test connections +TRUNCATE automations_workflow; 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 f8b25af25d4..f41724585c6 100644 --- a/bootstrap/sql/migrations/native/1.3.0/postgres/schemaChanges.sql +++ b/bootstrap/sql/migrations/native/1.3.0/postgres/schemaChanges.sql @@ -49,3 +49,6 @@ set json = jsonb_set( ) where name = 'OpenMetadata' and json #>> '{connection,config,secretsManagerProvider}' = 'noop'; + +-- Clean old test connections +TRUNCATE automations_workflow;