From 8f28c3b74b971305b5d588af344f63974e15a847 Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Thu, 4 Feb 2021 00:38:23 +0330 Subject: [PATCH] eh missing shit from last commit --- server/build.gradle.kts | 1 - .../main/kotlin/ir/armor/tachidesk/database/DBMangaer.kt | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/server/build.gradle.kts b/server/build.gradle.kts index a7d1e9e..21f40b6 100644 --- a/server/build.gradle.kts +++ b/server/build.gradle.kts @@ -79,7 +79,6 @@ dependencies { implementation ("org.jetbrains.exposed:exposed-core:$exposed_version") implementation ("org.jetbrains.exposed:exposed-dao:$exposed_version") implementation ("org.jetbrains.exposed:exposed-jdbc:$exposed_version") - implementation ("org.xerial:sqlite-jdbc:3.30.1") implementation ("com.h2database:h2:1.4.199") diff --git a/server/src/main/kotlin/ir/armor/tachidesk/database/DBMangaer.kt b/server/src/main/kotlin/ir/armor/tachidesk/database/DBMangaer.kt index 4d9af4a..14c35e1 100644 --- a/server/src/main/kotlin/ir/armor/tachidesk/database/DBMangaer.kt +++ b/server/src/main/kotlin/ir/armor/tachidesk/database/DBMangaer.kt @@ -16,14 +16,14 @@ import org.jetbrains.exposed.sql.transactions.transaction object DBMangaer { val db by lazy { Database.connect("jdbc:h2:${Config.dataRoot}/database.h2", "org.h2.Driver") -// Database.connect("jdbc:sqlite:${Config.dataRoot}/database.sqlite3", "org.sqlite.JDBC") } } fun makeDataBaseTables() { // mention db object to connect - val db = DBMangaer.db - db.useNestedTransactions = true + DBMangaer.db +// val db = DBMangaer.db +// db.useNestedTransactions = true transaction { SchemaUtils.create(ExtensionsTable)