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
|
* Executa os sqls novos na base de dados
|
||||||
*/
|
*/
|
||||||
private void executeFlyway() {
|
private void executeFlyway() {
|
||||||
// FlyWay.getInstance().defineDataSource(getDataSoure());
|
FlyWay.getInstance().defineDataSource(getDataSoure());
|
||||||
// FlyWay.getInstance().start();
|
FlyWay.getInstance().start();
|
||||||
//
|
|
||||||
// log.info("Executando Flyway...");
|
log.info("Executando Flyway...");
|
||||||
//
|
|
||||||
// try{
|
try{
|
||||||
// final Flyway flyway = new Flyway();
|
final Flyway flyway = new Flyway();
|
||||||
//
|
|
||||||
// flyway.setDataSource(getDataSoure());
|
flyway.setDataSource(getDataSoure());
|
||||||
// flyway.setValidateOnMigrate(false);
|
flyway.setValidateOnMigrate(false);
|
||||||
// flyway.setIgnoreFutureMigrations(true);
|
flyway.setIgnoreFutureMigrations(true);
|
||||||
// flyway.setOutOfOrder(true);
|
flyway.setOutOfOrder(true);
|
||||||
// flyway.setBaselineOnMigrate(true);
|
flyway.setBaselineOnMigrate(true);
|
||||||
//
|
|
||||||
// flyway.migrate();
|
flyway.migrate();
|
||||||
// }catch(Throwable t){
|
}catch(Throwable t){
|
||||||
// log.error("Erro ao executar o flyway",t);
|
log.error("Erro ao executar o flyway",t);
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// log.info("Flyway executado.");
|
log.info("Flyway executado.");
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean ipBloqueadoGeracaoServico() {
|
private boolean ipBloqueadoGeracaoServico() {
|
||||||
|
|
Loading…
Reference in New Issue