Adaptar o Totalbus para ser compatível com o postgresql

bug#11508
dev:trevezani
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@85607 d1611594-4594-4d17-8e1d-87c2c4800839
master
alberto 2018-09-24 22:14:36 +00:00
parent f76c16fa2f
commit 49f67226e9
1 changed files with 9 additions and 3 deletions

View File

@ -77,7 +77,10 @@ public class FlyWay {
try{ try{
final Flyway flyway = new Flyway(); 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); flyway.setDataSource(dataSource);
execute(flyway); execute(flyway);
@ -98,8 +101,11 @@ public class FlyWay {
try{ try{
final Flyway flyway = new Flyway(); 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); flyway.setDataSource(url, user, password);
execute(flyway); execute(flyway);