From 43520ea57aec2ceec59be19ca58f3eb10fdfe362 Mon Sep 17 00:00:00 2001 From: tkuzynow Date: Tue, 9 Apr 2024 08:55:05 +0200 Subject: [PATCH] feat: add migration to enable release toggles --- .../MigrateConsultingTypeDescriptionToTopicMigrationTask.java | 3 ++- src/main/resources/migrations/master-diakonie.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/vi/migrationtool/consultingtypeservice/MigrateConsultingTypeDescriptionToTopicMigrationTask.java b/src/main/java/com/vi/migrationtool/consultingtypeservice/MigrateConsultingTypeDescriptionToTopicMigrationTask.java index 166c527..db72923 100644 --- a/src/main/java/com/vi/migrationtool/consultingtypeservice/MigrateConsultingTypeDescriptionToTopicMigrationTask.java +++ b/src/main/java/com/vi/migrationtool/consultingtypeservice/MigrateConsultingTypeDescriptionToTopicMigrationTask.java @@ -56,7 +56,8 @@ private void batchInsertTopicsWithIdEqualToConsultingTypeId( // Format the current date and time String formattedCurrentDateTime = currentDateTime.format(formatter); consultingTypeServiceJdbcTemplate.batchUpdate( - "insert into topic (id, tenant_id, name, description, status, create_date, update_date, internal_identifier, fallback_agency_id, fallback_url, send_next_step_message, titles_short, titles_long, titles_welcome, titles_dropdown, slug) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", + "insert into topic (id, tenant_id, name, description, status, create_date, update_date, internal_identifier, fallback_agency_id, fallback_url, send_next_step_message, titles_short, titles_long, " + + "titles_welcome, titles_dropdown, slug) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", consultingTypes.stream() .filter(ct -> !topicExistsById(consultingTypeServiceJdbcTemplate, ct.getId())) .map( diff --git a/src/main/resources/migrations/master-diakonie.xml b/src/main/resources/migrations/master-diakonie.xml index 91d2fad..8362a21 100644 --- a/src/main/resources/migrations/master-diakonie.xml +++ b/src/main/resources/migrations/master-diakonie.xml @@ -24,5 +24,5 @@ - +