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-87c2c4800839master
parent
f76c16fa2f
commit
49f67226e9
|
@ -77,7 +77,10 @@ public class FlyWay {
|
||||||
try{
|
try{
|
||||||
final Flyway flyway = new Flyway();
|
final Flyway flyway = new Flyway();
|
||||||
|
|
||||||
|
if (this.location != null && !this.location.equals("db.migration")) {
|
||||||
flyway.setLocations(this.location);
|
flyway.setLocations(this.location);
|
||||||
|
}
|
||||||
|
|
||||||
flyway.setDataSource(dataSource);
|
flyway.setDataSource(dataSource);
|
||||||
|
|
||||||
execute(flyway);
|
execute(flyway);
|
||||||
|
@ -99,7 +102,10 @@ public class FlyWay {
|
||||||
try{
|
try{
|
||||||
final Flyway flyway = new Flyway();
|
final Flyway flyway = new Flyway();
|
||||||
|
|
||||||
|
if (this.location != null && !this.location.equals("db.migration")) {
|
||||||
flyway.setLocations("classpath: " + this.location);
|
flyway.setLocations("classpath: " + this.location);
|
||||||
|
}
|
||||||
|
|
||||||
flyway.setDataSource(url, user, password);
|
flyway.setDataSource(url, user, password);
|
||||||
|
|
||||||
execute(flyway);
|
execute(flyway);
|
||||||
|
|
Loading…
Reference in New Issue