From 144c95e86f49797132db688eafc7115670fd1cc6 Mon Sep 17 00:00:00 2001 From: Pere Miquel Brull Date: Fri, 12 Jul 2024 13:54:46 +0200 Subject: [PATCH] MINOR - Clean automations_workflow in 1.4.5 (#17006) --- .../sql/migrations/native/1.4.5/mysql/schemaChanges.sql | 3 ++- .../sql/migrations/native/1.4.5/postgres/schemaChanges.sql | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bootstrap/sql/migrations/native/1.4.5/mysql/schemaChanges.sql b/bootstrap/sql/migrations/native/1.4.5/mysql/schemaChanges.sql index 2b3d3fb82cd1..f2ae5626742f 100644 --- a/bootstrap/sql/migrations/native/1.4.5/mysql/schemaChanges.sql +++ b/bootstrap/sql/migrations/native/1.4.5/mysql/schemaChanges.sql @@ -18,4 +18,5 @@ CREATE INDEX idx_entity_id ON thread_entity (entityId); CREATE INDEX idx_type_task_status ON thread_entity (type, taskStatus); - +-- Clean dangling workflows not removed after test connection +truncate automations_workflow; diff --git a/bootstrap/sql/migrations/native/1.4.5/postgres/schemaChanges.sql b/bootstrap/sql/migrations/native/1.4.5/postgres/schemaChanges.sql index 69646fbffa51..52def59a3480 100644 --- a/bootstrap/sql/migrations/native/1.4.5/postgres/schemaChanges.sql +++ b/bootstrap/sql/migrations/native/1.4.5/postgres/schemaChanges.sql @@ -15,4 +15,7 @@ CREATE INDEX idx_field_relationship_to ON field_relationship (fromType, toFQNHas CREATE INDEX idx_entity_id ON thread_entity (entityId); -CREATE INDEX idx_type_task_status ON thread_entity (type, taskStatus); \ No newline at end of file +CREATE INDEX idx_type_task_status ON thread_entity (type, taskStatus); + +-- Clean dangling workflows not removed after test connection +truncate automations_workflow;