diff --git a/komga/build.gradle.kts b/komga/build.gradle.kts index 0dded6cc68..3430e49415 100644 --- a/komga/build.gradle.kts +++ b/komga/build.gradle.kts @@ -111,8 +111,8 @@ dependencies { implementation("com.github.ben-manes.caffeine:caffeine") - implementation("org.xerial:sqlite-jdbc:3.45.0.0") - jooqGenerator("org.xerial:sqlite-jdbc:3.45.0.0") + implementation("org.xerial:sqlite-jdbc:3.46.1.3") + jooqGenerator("org.xerial:sqlite-jdbc:3.46.1.3") if (version.toString().endsWith(".0.0")) { ksp("com.github.gotson.bestbefore:bestbefore-processor-kotlin:0.1.0") diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/datasource/DataSourcesConfiguration.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/datasource/DataSourcesConfiguration.kt index f5f2a1ed1b..0f71e9f66f 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/datasource/DataSourcesConfiguration.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/datasource/DataSourcesConfiguration.kt @@ -47,7 +47,10 @@ class DataSourcesConfiguration( .type(dataSourceClass) .build() - dataSource.setEnforceForeignKeys(true) + with(dataSource) { + setEnforceForeignKeys(true) + setGetGeneratedKeys(false) + } with(databaseProps) { journalMode?.let { dataSource.setJournalMode(it.name) } busyTimeout?.let { dataSource.config.busyTimeout = it.toMillis().toInt() }