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