mirror of
https://github.com/corda/corda.git
synced 2025-06-20 08:03:53 +00:00
Upgrade H2 to 1.4 to fix curious file corruption issue encountered by Patrick.
This commit is contained in:
@ -122,7 +122,7 @@ dependencies {
|
|||||||
testCompile 'com.pholser:junit-quickcheck-core:0.6'
|
testCompile 'com.pholser:junit-quickcheck-core:0.6'
|
||||||
|
|
||||||
// For H2 database support in persistence
|
// For H2 database support in persistence
|
||||||
compile "com.h2database:h2:1.3.176"
|
compile "com.h2database:h2:1.4.192"
|
||||||
|
|
||||||
// Exposed: Kotlin SQL library - under evaluation
|
// Exposed: Kotlin SQL library - under evaluation
|
||||||
compile "org.jetbrains.exposed:exposed:0.5.0"
|
compile "org.jetbrains.exposed:exposed:0.5.0"
|
||||||
|
@ -6,7 +6,7 @@ keyStorePassword = "cordacadevpass"
|
|||||||
trustStorePassword = "trustpass"
|
trustStorePassword = "trustpass"
|
||||||
dataSourceProperties = {
|
dataSourceProperties = {
|
||||||
dataSourceClassName = org.h2.jdbcx.JdbcDataSource
|
dataSourceClassName = org.h2.jdbcx.JdbcDataSource
|
||||||
"dataSource.url" = "jdbc:h2:file:"${basedir}"/persistence;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;MVCC=true;MV_STORE=true;WRITE_DELAY=0;AUTO_SERVER_PORT="${h2port}
|
"dataSource.url" = "jdbc:h2:file:"${basedir}"/persistence;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;WRITE_DELAY=0;AUTO_SERVER_PORT="${h2port}
|
||||||
"dataSource.user" = sa
|
"dataSource.user" = sa
|
||||||
"dataSource.password" = ""
|
"dataSource.password" = ""
|
||||||
}
|
}
|
||||||
|
@ -164,7 +164,7 @@ class MockStorageService(override val attachments: AttachmentStorage = MockAttac
|
|||||||
fun makeTestDataSourceProperties(nodeName: String = SecureHash.randomSHA256().toString()): Properties {
|
fun makeTestDataSourceProperties(nodeName: String = SecureHash.randomSHA256().toString()): Properties {
|
||||||
val props = Properties()
|
val props = Properties()
|
||||||
props.setProperty("dataSourceClassName", "org.h2.jdbcx.JdbcDataSource")
|
props.setProperty("dataSourceClassName", "org.h2.jdbcx.JdbcDataSource")
|
||||||
props.setProperty("dataSource.url", "jdbc:h2:mem:${nodeName}_persistence;MVCC=TRUE;DB_CLOSE_ON_EXIT=FALSE")
|
props.setProperty("dataSource.url", "jdbc:h2:mem:${nodeName}_persistence;DB_CLOSE_ON_EXIT=FALSE")
|
||||||
props.setProperty("dataSource.user", "sa")
|
props.setProperty("dataSource.user", "sa")
|
||||||
props.setProperty("dataSource.password", "")
|
props.setProperty("dataSource.password", "")
|
||||||
return props
|
return props
|
||||||
|
Reference in New Issue
Block a user