From 91cd89771726ee4f23b32a9cc734e4359e0f944d Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 17 Feb 2021 21:26:24 +0600 Subject: [PATCH] updates --- .../plugins/captcha/db/CaptchaChatsSettingsRepo.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 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 3e1a894..44c631d 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 @@ -1,7 +1,6 @@ package dev.inmo.plagubot.plugins.captcha.db -import dev.inmo.micro_utils.repos.exposed.AbstractExposedCRUDRepo -import dev.inmo.micro_utils.repos.exposed.ExposedCRUDRepo +import dev.inmo.micro_utils.repos.exposed.* import dev.inmo.micro_utils.repos.exposed.keyvalue.ExposedKeyValueRepo import dev.inmo.plagubot.plugins.captcha.settings.* import dev.inmo.tgbotapi.types.ChatId @@ -17,7 +16,7 @@ class CaptchaChatsSettingsRepo( ) { private val chatIdColumn = long("chatId") private val checkTimeSecondsColumn = integer("checkTime") - private val solveCaptchaTextColumn = text("checkTime") + private val solveCaptchaTextColumn = text("solveCaptchaText") override val primaryKey = PrimaryKey(chatIdColumn) @@ -53,4 +52,8 @@ class CaptchaChatsSettingsRepo( get(checkTimeSecondsColumn), get(solveCaptchaTextColumn) ) + + init { + initTable() + } }