add defaults to new columns

This commit is contained in:
InsanusMokrassar 2022-01-05 01:16:10 +06:00
parent d375875067
commit 306eccf380

View File

@ -31,8 +31,8 @@ class CaptchaChatsSettingsRepo(
default(defaultCaptchaProviderValue) default(defaultCaptchaProviderValue)
} }
private val autoRemoveCommandsColumn = bool("autoRemoveCommands") private val autoRemoveCommandsColumn = bool("autoRemoveCommands")
private val autoRemoveEventsColumn = bool("autoRemoveEvents") private val autoRemoveEventsColumn = bool("autoRemoveEvents").apply { default(true) }
private val enabledColumn = bool("enabled") private val enabledColumn = bool("enabled").default(true)
override val primaryKey = PrimaryKey(chatIdColumn) override val primaryKey = PrimaryKey(chatIdColumn)