From b7e2aecd2b73adab9d1c95524496494c5013c4d5 Mon Sep 17 00:00:00 2001 From: Pere Miquel Brull Date: Thu, 11 May 2023 09:57:52 +0200 Subject: [PATCH] Truncate automations_workflow (#11531) --- .../v010__create_db_connection_info.sql | 5 ++++- .../v010__create_db_connection_info.sql | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bootstrap/sql/com.mysql.cj.jdbc.Driver/v010__create_db_connection_info.sql b/bootstrap/sql/com.mysql.cj.jdbc.Driver/v010__create_db_connection_info.sql index 375fa7a7898..1c35872b8e0 100644 --- a/bootstrap/sql/com.mysql.cj.jdbc.Driver/v010__create_db_connection_info.sql +++ b/bootstrap/sql/com.mysql.cj.jdbc.Driver/v010__create_db_connection_info.sql @@ -6,4 +6,7 @@ WHERE (serviceType = 'Kafka' OR serviceType = 'Redpanda') AND JSON_EXTRACT(json, '$.connection.config.saslMechanism') NOT IN ('GSSAPI', 'PLAIN', 'SCRAM-SHA-256', 'SCRAM-SHA-512', 'OAUTHBEARER'); -- Remove the Subscriptions -DELETE FROM event_subscription_entity; \ No newline at end of file +DELETE FROM event_subscription_entity; + +-- Clean old test connections +TRUNCATE automations_workflow; diff --git a/bootstrap/sql/org.postgresql.Driver/v010__create_db_connection_info.sql b/bootstrap/sql/org.postgresql.Driver/v010__create_db_connection_info.sql index 7ea7e1a373c..5a7d311ca76 100644 --- a/bootstrap/sql/org.postgresql.Driver/v010__create_db_connection_info.sql +++ b/bootstrap/sql/org.postgresql.Driver/v010__create_db_connection_info.sql @@ -7,3 +7,6 @@ WHERE (servicetype = 'Kafka' OR serviceType = 'Redpanda') -- Remove the Subscriptions DELETE FROM event_subscription_entity; + +-- Clean old test connections +TRUNCATE automations_workflow;