From f913ccd0c60de7ab1bab94be8de3eeb32748d43d Mon Sep 17 00:00:00 2001 From: Marvin Date: Fri, 19 Jan 2024 19:41:26 +0100 Subject: [PATCH] fix: downgrade SQLite due to issues with Exposed --- build.gradle.kts | 2 +- src/main/kotlin/de/gianttree/discord/w2g/database/guild.kt | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 1f14bee..db4af48 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -24,7 +24,7 @@ dependencies { val exposedVersion = "0.46.0" val hikariVersion = "5.1.0" - val sqliteVersion = "3.45.0.0" + val sqliteVersion = "3.44.1.0" val mariadbVersion = "3.3.2" val junitVersion = "5.10.1" diff --git a/src/main/kotlin/de/gianttree/discord/w2g/database/guild.kt b/src/main/kotlin/de/gianttree/discord/w2g/database/guild.kt index 8b54d54..2a6adac 100644 --- a/src/main/kotlin/de/gianttree/discord/w2g/database/guild.kt +++ b/src/main/kotlin/de/gianttree/discord/w2g/database/guild.kt @@ -1,11 +1,12 @@ package de.gianttree.discord.w2g.database -import de.gianttree.discord.w2g.database.Guilds.active import dev.kord.common.entity.Snowflake import kotlinx.datetime.Clock import org.jetbrains.exposed.dao.id.EntityID -import org.jetbrains.exposed.sql.* -import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq +import org.jetbrains.exposed.sql.and +import org.jetbrains.exposed.sql.min +import org.jetbrains.exposed.sql.selectAll +import org.jetbrains.exposed.sql.sum import dev.kord.core.entity.Guild as KordGuild