From 306eccf3808a449a03ee49a4eea907656712f577 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 5 Jan 2022 01:16:10 +0600 Subject: [PATCH] add defaults to new columns --- .../plagubot/plugins/captcha/db/CaptchaChatsSettingsRepo.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/dev/inmo/plagubot/plugins/captcha/db/CaptchaChatsSettingsRepo.kt b/src/main/kotlin/dev/inmo/plagubot/plugins/captcha/db/CaptchaChatsSettingsRepo.kt index af36785..15e4821 100644 --- a/src/main/kotlin/dev/inmo/plagubot/plugins/captcha/db/CaptchaChatsSettingsRepo.kt +++ b/src/main/kotlin/dev/inmo/plagubot/plugins/captcha/db/CaptchaChatsSettingsRepo.kt @@ -31,8 +31,8 @@ class CaptchaChatsSettingsRepo( default(defaultCaptchaProviderValue) } private val autoRemoveCommandsColumn = bool("autoRemoveCommands") - private val autoRemoveEventsColumn = bool("autoRemoveEvents") - private val enabledColumn = bool("enabled") + private val autoRemoveEventsColumn = bool("autoRemoveEvents").apply { default(true) } + private val enabledColumn = bool("enabled").default(true) override val primaryKey = PrimaryKey(chatIdColumn)