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;