Procházet zdrojové kódy

disable migration when creating db for the first time

tags/2.0.1
Jonathan Cobb před 4 roky
rodič
revize
8c648735d9
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      wizard-server/src/main/java/org/cobbzilla/wizard/server/listener/SystemInitializerListener.java

+ 2
- 1
wizard-server/src/main/java/org/cobbzilla/wizard/server/listener/SystemInitializerListener.java Zobrazit soubor

@@ -86,8 +86,9 @@ public class SystemInitializerListener extends RestServerLifecycleListenerBase {
execScript("createdb --encoding=UTF-8 "+db);
if (!dbExists(db)) die(PREFIX+"error creating "+db+" database");

// create the schema, just this time
// create the schema, just this time. Disable migration.
config.getDatabase().getHibernate().setHbm2ddlAuto("create");
config.getDatabase().setMigrationEnabled(false);

} else {
log.info(db+" DB exists, not creating");


Načítá se…
Zrušit
Uložit