浏览代码

revert flyway init db step

tags/2.0.1
Jonathan Cobb 4 年前
父节点
当前提交
0003e387e8
共有 1 个文件被更改,包括 1 次插入7 次删除
  1. +1
    -7
      wizard-server/src/main/java/org/cobbzilla/wizard/server/listener/FlywayMigrationListener.java

+ 1
- 7
wizard-server/src/main/java/org/cobbzilla/wizard/server/listener/FlywayMigrationListener.java 查看文件

@@ -32,13 +32,7 @@ public class FlywayMigrationListener<C extends RestServerConfiguration> extends
this.server = server;
final PgRestServerConfiguration configuration = (PgRestServerConfiguration) server.getConfiguration();
if (configuration.getDatabase().isMigrationEnabled()) {
// does the flyway table exist? If not, this is a first-time setup
if (configuration.tableExists(getFlywayTableName())) {
migrate(configuration);
} else {
log.warn("beforeStart: database schema does not seem to exist, will create it");
configuration.getDatabase().getHibernate().setHbm2ddlAuto("create");
}
migrate(configuration);
}
super.beforeStart(server);
}


正在加载...
取消
保存