Selaa lähdekoodia

disable migrations when creating schema for the first time

tags/2.0.1
Jonathan Cobb 4 vuotta sitten
vanhempi
commit
1c1b2a475c
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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 Näytä tiedosto

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


Ladataan…
Peruuta
Tallenna