|
|
|
@ -52,6 +52,12 @@ public class FlywayProperties {
|
|
|
|
|
@Deprecated
|
|
|
|
|
private boolean checkLocation = true;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Whether Flyway should fail if a location specified in the flyway.locations option
|
|
|
|
|
* doesn't exist.
|
|
|
|
|
*/
|
|
|
|
|
private boolean failOnMissingLocations;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Locations of migrations scripts. Can contain the special "{vendor}" placeholder to
|
|
|
|
|
* use vendor-specific locations.
|
|
|
|
@ -355,6 +361,18 @@ public class FlywayProperties {
|
|
|
|
|
*/
|
|
|
|
|
private List<String> vaultSecrets;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Ignore migrations that match this comma-separated list of patterns when validating
|
|
|
|
|
* migrations. Requires Flyway Teams.
|
|
|
|
|
*/
|
|
|
|
|
private List<String> ignoreMigrationPatterns;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Whether Flyway should try to automatically detect SQL migration file encoding.
|
|
|
|
|
* Requires Flyway Teams.
|
|
|
|
|
*/
|
|
|
|
|
private Boolean detectEncoding;
|
|
|
|
|
|
|
|
|
|
public boolean isEnabled() {
|
|
|
|
|
return this.enabled;
|
|
|
|
|
}
|
|
|
|
@ -375,6 +393,14 @@ public class FlywayProperties {
|
|
|
|
|
this.checkLocation = checkLocation;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isFailOnMissingLocations() {
|
|
|
|
|
return this.failOnMissingLocations;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setFailOnMissingLocations(boolean failOnMissingLocations) {
|
|
|
|
|
this.failOnMissingLocations = failOnMissingLocations;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<String> getLocations() {
|
|
|
|
|
return this.locations;
|
|
|
|
|
}
|
|
|
|
@ -842,4 +868,20 @@ public class FlywayProperties {
|
|
|
|
|
this.vaultSecrets = vaultSecrets;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<String> getIgnoreMigrationPatterns() {
|
|
|
|
|
return this.ignoreMigrationPatterns;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIgnoreMigrationPatterns(List<String> ignoreMigrationPatterns) {
|
|
|
|
|
this.ignoreMigrationPatterns = ignoreMigrationPatterns;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Boolean getDetectEncoding() {
|
|
|
|
|
return this.detectEncoding;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDetectEncoding(final Boolean detectEncoding) {
|
|
|
|
|
this.detectEncoding = detectEncoding;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|