fixes bug#7472
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@58163 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
28e8d41822
commit
6d49c2f0f5
|
@ -78,13 +78,19 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
|
|||
private void executeFlyway() {
|
||||
log.info("Executando Flyway...");
|
||||
|
||||
final Flyway flyway = new Flyway();
|
||||
|
||||
flyway.setDataSource(getDataSoure());
|
||||
|
||||
flyway.setBaselineOnMigrate(true);
|
||||
|
||||
flyway.migrate();
|
||||
try{
|
||||
final Flyway flyway = new Flyway();
|
||||
|
||||
flyway.setDataSource(getDataSoure());
|
||||
flyway.setValidateOnMigrate(false);
|
||||
flyway.setIgnoreFutureMigrations(true);
|
||||
flyway.setOutOfOrder(true);
|
||||
flyway.setBaselineOnMigrate(true);
|
||||
|
||||
flyway.migrate();
|
||||
}catch(Throwable t){
|
||||
log.error("Erro ao executar o flyway",t);
|
||||
}
|
||||
|
||||
log.info("Flyway executado.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue