From 49f67226e9bb21810a353fe64d60cf35e1e91488 Mon Sep 17 00:00:00 2001 From: alberto Date: Mon, 24 Sep 2018 22:14:36 +0000 Subject: [PATCH] =?UTF-8?q?Adaptar=20o=20Totalbus=20para=20ser=20compat?= =?UTF-8?q?=C3=ADvel=20com=20o=20postgresql=20bug#11508=20dev:trevezani=20?= =?UTF-8?q?qua:?= 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@85607 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/com/rjconsultores/ventaboletos/FlyWay.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/FlyWay.java b/src/com/rjconsultores/ventaboletos/FlyWay.java index 87e0d14a0..14ad8e25d 100644 --- a/src/com/rjconsultores/ventaboletos/FlyWay.java +++ b/src/com/rjconsultores/ventaboletos/FlyWay.java @@ -77,7 +77,10 @@ public class FlyWay { try{ final Flyway flyway = new Flyway(); - flyway.setLocations(this.location); + if (this.location != null && !this.location.equals("db.migration")) { + flyway.setLocations(this.location); + } + flyway.setDataSource(dataSource); execute(flyway); @@ -98,8 +101,11 @@ public class FlyWay { try{ final Flyway flyway = new Flyway(); - - flyway.setLocations("classpath: " + this.location); + + if (this.location != null && !this.location.equals("db.migration")) { + flyway.setLocations("classpath: " + this.location); + } + flyway.setDataSource(url, user, password); execute(flyway);