From 0364dabb89a811a199ba405a5e0149a4fd5f521a Mon Sep 17 00:00:00 2001 From: SebClem Date: Fri, 17 Jun 2022 18:04:23 +0200 Subject: [PATCH] :ambulance: Fix auto_voice_channel_title type --- .../net/Broken/Api/Services/SettingService.java | 4 ++-- .../db/changelog/db.changelog-master.yml | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/Broken/Api/Services/SettingService.java b/src/main/java/net/Broken/Api/Services/SettingService.java index 39795c2..5f54257 100644 --- a/src/main/java/net/Broken/Api/Services/SettingService.java +++ b/src/main/java/net/Broken/Api/Services/SettingService.java @@ -103,7 +103,7 @@ public class SettingService { SettingDescriber mainField = new SettingDescriber( "auto_voice", "Enable Auto Create Voice Chanel", - "Auto create voice channel on join.", + null, SettingDescriber.TYPE.BOOL ); @@ -118,7 +118,7 @@ public class SettingService { "auto_voice_channel_title", "Auto Created Voice Channel title", "Auto created voice channel will use this title, @count will be replaced by the channel count.", - SettingDescriber.TYPE.VOICE_CHANNEL + SettingDescriber.TYPE.STRING )); return new SettingGroup( diff --git a/src/main/resources/db/changelog/db.changelog-master.yml b/src/main/resources/db/changelog/db.changelog-master.yml index 17c38f2..7258d35 100644 --- a/src/main/resources/db/changelog/db.changelog-master.yml +++ b/src/main/resources/db/changelog/db.changelog-master.yml @@ -716,3 +716,20 @@ databaseChangeLog: columnName: welcome_message tableName: guild_preference_entity +# 12/06/2022 +- changeSet: + id: 1655026344809-1 + author: seb65 (generated) + changes: + - addUniqueConstraint: + columnNames: guild_id + constraintName: UC_GUILD_PREFERENCE_ENTITYGUILD_ID_COL + tableName: guild_preference_entity +- changeSet: + id: 1655026344809-2 + author: seb65 (generated) + changes: + - dropColumn: + columnName: anti_spam + tableName: guild_preference_entity +