Skip to content
Snippets Groups Projects
Verified Commit 3330a9e4 authored by Sebastian's avatar Sebastian
Browse files

Upgrade H2 to latest version

parent ae6dee00
No related branches found
No related tags found
1 merge request!46Upgrade H2
Pipeline #8414 passed
...@@ -27,7 +27,7 @@ dependencies { ...@@ -27,7 +27,7 @@ dependencies {
implementation "io.ktor:ktor-jackson:$ktor_version" implementation "io.ktor:ktor-jackson:$ktor_version"
api "org.slf4j:slf4j-api:1.7.32" api "org.slf4j:slf4j-api:1.7.32"
implementation 'com.h2database:h2:1.4.192' // The last version that supports Java 1.6 implementation 'com.h2database:h2:1.4.200'
// Base 32 // Base 32
implementation 'dev.keiji.rfc4648:rfc4648:1.0.0' implementation 'dev.keiji.rfc4648:rfc4648:1.0.0'
......
...@@ -33,7 +33,7 @@ open class H2Database( ...@@ -33,7 +33,7 @@ open class H2Database(
} }
private val dbPath: String get() = File(config.getDatabaseDirectory(), "db").absolutePath private val dbPath: String get() = File(config.getDatabaseDirectory(), "db").absolutePath
private val url: String = ("jdbc:h2:split:$dbPath;MULTI_THREADED=1;WRITE_DELAY=0") private val url: String = ("jdbc:h2:split:$dbPath;WRITE_DELAY=0")
override fun open(listener: MigrationListener?): Boolean { override fun open(listener: MigrationListener?): Boolean {
val dir = config.getDatabaseDirectory() val dir = config.getDatabaseDirectory()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment