Skip to content

Commit

Permalink
feat: add migration to enable release toggles
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuzynow committed Apr 9, 2024
1 parent 0c17a5c commit 43520ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/migrations/master-diakonie.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
<include file="migrations/changeset/0018_migrate_tenant_admins_to_set_user_admin_and_agency_admin_roles/0018_migrate_tenant_admins_to_set_user_admin_and_agency_admin_roles.xml"/>
<include file="migrations/changeset/0021_add_custom_keycloak_attribute_to_users_with_role/0021_add_custom_keycloak_attribute_to_users_with_role.xml"/>
<include file="migrations/changeset/0023_create_jitsi_technical_user/0023_create_jitsi_technical_user.xml"/>
<!-- todo <include file="migrations/changeset/0024_create_weblate_project/0024_create_weblate_project.xml"/>-->
<include file="migrations/changeset/0024_create_weblate_project/0024_create_weblate_project.xml"/>
</databaseChangeLog>

0 comments on commit 43520ea

Please sign in to comment.