From 1e1ea30f78a86c4ceb7ae93353f658b08ef0928d Mon Sep 17 00:00:00 2001 From: alberto Date: Thu, 29 Sep 2016 18:54:27 +0000 Subject: [PATCH] =?UTF-8?q?Flyway=20=C3=BAnico?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@60915 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/com/rjconsultores/ventaboletos/FlyWay.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/rjconsultores/ventaboletos/FlyWay.java b/src/com/rjconsultores/ventaboletos/FlyWay.java index 1f2ae9837..480ab672f 100644 --- a/src/com/rjconsultores/ventaboletos/FlyWay.java +++ b/src/com/rjconsultores/ventaboletos/FlyWay.java @@ -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; } }