RequeryConfiguration setting for table creation is now CREATE_NOT_EXISTS (was DROP_CREATE) (#374)

This commit is contained in:
josecoll 2017-03-16 16:23:37 +00:00 committed by GitHub
parent 6844ab32f8
commit 391270ed71

View File

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