fixes bug#13207
dev:julio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@88782 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
cd49a3334e
commit
b7e1122980
|
@ -91,26 +91,26 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
|
|||
* Executa os sqls novos na base de dados
|
||||
*/
|
||||
private void executeFlyway() {
|
||||
// FlyWay.getInstance().defineDataSource(getDataSoure());
|
||||
// FlyWay.getInstance().start();
|
||||
//
|
||||
// log.info("Executando Flyway...");
|
||||
//
|
||||
// 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.");
|
||||
FlyWay.getInstance().defineDataSource(getDataSoure());
|
||||
FlyWay.getInstance().start();
|
||||
|
||||
log.info("Executando Flyway...");
|
||||
|
||||
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.");
|
||||
}
|
||||
|
||||
private boolean ipBloqueadoGeracaoServico() {
|
||||
|
|
Loading…
Reference in New Issue