mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
RequeryConfiguration setting for table creation is now CREATE_NOT_EXISTS (was DROP_CREATE) (#374)
This commit is contained in:
parent
6844ab32f8
commit
391270ed71
@ -38,7 +38,7 @@ class RequeryConfiguration(val properties: Properties, val useDefaultLogging: Bo
|
||||
fun makeSessionFactoryForModel(model: EntityModel): KotlinEntityDataStore<Persistable> {
|
||||
val configuration = KotlinConfigurationTransactionWrapper(model, dataSource, useDefaultLogging = this.useDefaultLogging)
|
||||
val tables = SchemaModifier(configuration)
|
||||
val mode = TableCreationMode.DROP_CREATE
|
||||
val mode = TableCreationMode.CREATE_NOT_EXISTS
|
||||
tables.createTables(mode)
|
||||
return KotlinEntityDataStore(configuration)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user