From 391270ed714dae89af837e96343faf3609682ff4 Mon Sep 17 00:00:00 2001 From: josecoll Date: Thu, 16 Mar 2017 16:23:37 +0000 Subject: [PATCH] RequeryConfiguration setting for table creation is now CREATE_NOT_EXISTS (was DROP_CREATE) (#374) --- .../net/corda/node/services/database/RequeryConfiguration.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/src/main/kotlin/net/corda/node/services/database/RequeryConfiguration.kt b/node/src/main/kotlin/net/corda/node/services/database/RequeryConfiguration.kt index 16ca32f87e..409b309ede 100644 --- a/node/src/main/kotlin/net/corda/node/services/database/RequeryConfiguration.kt +++ b/node/src/main/kotlin/net/corda/node/services/database/RequeryConfiguration.kt @@ -38,7 +38,7 @@ class RequeryConfiguration(val properties: Properties, val useDefaultLogging: Bo fun makeSessionFactoryForModel(model: EntityModel): KotlinEntityDataStore { 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) }