Flyway único

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@60915 d1611594-4594-4d17-8e1d-87c2c4800839
master
alberto 2016-09-29 18:54:27 +00:00
parent bbef731ce6
commit 1e1ea30f78
1 changed files with 5 additions and 1 deletions

View File

@ -19,7 +19,7 @@ public class FlyWay {
this.dataSource = dataSource;
}
public void start() {
public boolean start() {
log.info("Executando Flyway...");
try{
@ -34,8 +34,12 @@ public class FlyWay {
flyway.migrate();
}catch(Throwable t){
log.error("Erro ao executar o flyway",t);
return false;
}
log.info("Flyway executado.");
return true;
}
}