deps(komga): bump sqlite-jdbc from 3.45.0.0 to 3.46.1.3

This commit is contained in:
Gauthier Roebroeck 2024-09-27 15:33:38 +08:00
parent 870afffcf3
commit b9cb0fe091
2 changed files with 6 additions and 3 deletions

View File

@ -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")

View File

@ -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() }