Flyway único
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@60915 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
bbef731ce6
commit
1e1ea30f78
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue