Explorar el Código

disable migrations when creating schema for the first time

tags/2.0.1
Jonathan Cobb hace 4 años
padre
commit
1c1b2a475c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      wizard-server/src/main/java/org/cobbzilla/wizard/server/listener/SystemInitializerListener.java

+ 1
- 0
wizard-server/src/main/java/org/cobbzilla/wizard/server/listener/SystemInitializerListener.java Ver fichero

@@ -126,6 +126,7 @@ public class SystemInitializerListener extends RestServerLifecycleListenerBase {
} catch (Exception e) {
log.warn("table '"+tableName+"' not found, will create schema: " + shortError(e));
config.getDatabase().getHibernate().setHbm2ddlAuto("create");
config.getDatabase().setMigrationEnabled(false);
}
}
return false;


Cargando…
Cancelar
Guardar