From b557ae463a2771a10949cc1b603692e37b7c255f Mon Sep 17 00:00:00 2001 From: rmn-boiko Date: Fri, 20 Dec 2024 10:57:37 +0100 Subject: [PATCH] Extend clean up migration --- .../postgres/20241204155207_cleanup_flow_configurations.sql | 1 + migrations/sqlite/20241204155207_cleanup_flow_configurations.sql | 1 + 2 files changed, 2 insertions(+) diff --git a/migrations/postgres/20241204155207_cleanup_flow_configurations.sql b/migrations/postgres/20241204155207_cleanup_flow_configurations.sql index 1e00cfd6e..51def4abc 100644 --- a/migrations/postgres/20241204155207_cleanup_flow_configurations.sql +++ b/migrations/postgres/20241204155207_cleanup_flow_configurations.sql @@ -1,3 +1,4 @@ delete from outbox_message_consumptions where producer_name='dev.kamu.domain.flow-system.FlowConfigurationService'; TRUNCATE TABLE flow_configuration_events RESTART IDENTITY; +TRUNCATE TABLE flow_events CASCADE RESTART IDENTITY; diff --git a/migrations/sqlite/20241204155207_cleanup_flow_configurations.sql b/migrations/sqlite/20241204155207_cleanup_flow_configurations.sql index 0aff57151..678ca6c5c 100644 --- a/migrations/sqlite/20241204155207_cleanup_flow_configurations.sql +++ b/migrations/sqlite/20241204155207_cleanup_flow_configurations.sql @@ -1,3 +1,4 @@ delete from outbox_message_consumptions where producer_name = "dev.kamu.domain.flow-system.FlowConfigurationService"; DELETE FROM flow_configuration_events; +DELETE FROM flow_events;