fixes bug#AL-2004
parent
f631eb4c2a
commit
7202a52527
|
@ -42,6 +42,7 @@ public class FlyWay {
|
||||||
private String password = null;
|
private String password = null;
|
||||||
|
|
||||||
private String location = "db.migration";
|
private String location = "db.migration";
|
||||||
|
private String oldies = "db.backup.oracle";
|
||||||
|
|
||||||
private FlyWay() {
|
private FlyWay() {
|
||||||
|
|
||||||
|
@ -163,6 +164,8 @@ public class FlyWay {
|
||||||
flyway.setLocations(customLocation);
|
flyway.setLocations(customLocation);
|
||||||
} else if (this.location != null && !this.location.equals("db.migration")) {
|
} else if (this.location != null && !this.location.equals("db.migration")) {
|
||||||
flyway.setLocations(this.location);
|
flyway.setLocations(this.location);
|
||||||
|
}else {
|
||||||
|
flyway.setLocations(this.oldies, this.location);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dataSource != null) {
|
if (dataSource != null) {
|
||||||
|
|
Loading…
Reference in New Issue