@ -28,6 +28,7 @@ import java.util.List;
import java.util.Map ;
import java.util.Map ;
import org.springframework.boot.context.properties.ConfigurationProperties ;
import org.springframework.boot.context.properties.ConfigurationProperties ;
import org.springframework.boot.context.properties.DeprecatedConfigurationProperty ;
import org.springframework.boot.convert.DurationUnit ;
import org.springframework.boot.convert.DurationUnit ;
/ * *
/ * *
@ -295,17 +296,6 @@ public class FlywayProperties {
* /
* /
private String licenseKey ;
private String licenseKey ;
/ * *
* Whether to enable support for Oracle SQL * Plus commands . Requires Flyway Teams .
* /
private Boolean oracleSqlplus ;
/ * *
* Whether to issue a warning rather than an error when a not - yet - supported Oracle
* SQL * Plus statement is encountered . Requires Flyway Teams .
* /
private Boolean oracleSqlplusWarn ;
/ * *
/ * *
* Whether to stream SQL migrations when executing them . Requires Flyway Teams .
* Whether to stream SQL migrations when executing them . Requires Flyway Teams .
* /
* /
@ -332,28 +322,12 @@ public class FlywayProperties {
* /
* /
private String kerberosConfigFile ;
private String kerberosConfigFile ;
/ * *
* Path of the Oracle Kerberos cache file . Requires Flyway Teams .
* /
private String oracleKerberosCacheFile ;
/ * *
* Location of the Oracle Wallet , used to sign in to the database automatically .
* Requires Flyway Teams .
* /
private String oracleWalletLocation ;
/ * *
/ * *
* Whether Flyway should output a table with the results of queries when executing
* Whether Flyway should output a table with the results of queries when executing
* migrations . Requires Flyway Teams .
* migrations . Requires Flyway Teams .
* /
* /
private Boolean outputQueryResults ;
private Boolean outputQueryResults ;
/ * *
* Path to the SQL Server Kerberos login file . Requires Flyway Teams .
* /
private String sqlServerKerberosLoginFile ;
/ * *
/ * *
* Whether Flyway should skip executing the contents of the migrations and only update
* Whether Flyway should skip executing the contents of the migrations and only update
* the schema history table . Requires Flyway teams .
* the schema history table . Requires Flyway teams .
@ -372,8 +346,12 @@ public class FlywayProperties {
* /
* /
private Boolean detectEncoding ;
private Boolean detectEncoding ;
private final Oracle oracle = new Oracle ( ) ;
private final Postgresql postgresql = new Postgresql ( ) ;
private final Postgresql postgresql = new Postgresql ( ) ;
private final Sqlserver sqlserver = new Sqlserver ( ) ;
public boolean isEnabled ( ) {
public boolean isEnabled ( ) {
return this . enabled ;
return this . enabled ;
}
}
@ -758,28 +736,37 @@ public class FlywayProperties {
this . licenseKey = licenseKey ;
this . licenseKey = licenseKey ;
}
}
@DeprecatedConfigurationProperty ( replacement = "spring.flyway.oracle.sqlplus" )
@Deprecated ( since = "3.2.0" , forRemoval = true )
public Boolean getOracleSqlplus ( ) {
public Boolean getOracleSqlplus ( ) {
return this . oracleSqlplus ;
return getOracle ( ) . getSqlplus ( ) ;
}
}
@Deprecated ( since = "3.2.0" , forRemoval = true )
public void setOracleSqlplus ( Boolean oracleSqlplus ) {
public void setOracleSqlplus ( Boolean oracleSqlplus ) {
this . oracleSqlplus = oracleSqlplus ;
getOracle ( ) . setSqlplus ( oracleSqlplus ) ;
}
}
@DeprecatedConfigurationProperty ( replacement = "spring.flyway.oracle.sqlplus-warn" )
@Deprecated ( since = "3.2.0" , forRemoval = true )
public Boolean getOracleSqlplusWarn ( ) {
public Boolean getOracleSqlplusWarn ( ) {
return this . oracleSqlplusWarn ;
return getOracle ( ) . getSqlplusWarn ( ) ;
}
}
@Deprecated ( since = "3.2.0" , forRemoval = true )
public void setOracleSqlplusWarn ( Boolean oracleSqlplusWarn ) {
public void setOracleSqlplusWarn ( Boolean oracleSqlplusWarn ) {
this . oracleSqlplusWarn = oracleSqlplusWarn ;
getOracle ( ) . setSqlplusWarn ( oracleSqlplusWarn ) ;
}
}
@DeprecatedConfigurationProperty ( replacement = "spring.flyway.oracle.wallet-location" )
@Deprecated ( since = "3.2.0" , forRemoval = true )
public String getOracleWalletLocation ( ) {
public String getOracleWalletLocation ( ) {
return this . oracleWalletLocation ;
return getOracle ( ) . getWalletLocation ( ) ;
}
}
@Deprecated ( since = "3.2.0" , forRemoval = true )
public void setOracleWalletLocation ( String oracleWalletLocation ) {
public void setOracleWalletLocation ( String oracleWalletLocation ) {
this . oracleWalletLocation = oracleWalletLocation ;
getOracle ( ) . setWalletLocation ( oracleWalletLocation ) ;
}
}
public Boolean getStream ( ) {
public Boolean getStream ( ) {
@ -822,12 +809,15 @@ public class FlywayProperties {
this . kerberosConfigFile = kerberosConfigFile ;
this . kerberosConfigFile = kerberosConfigFile ;
}
}
@DeprecatedConfigurationProperty ( replacement = "spring.flyway.oracle.kerberos-cache-file" )
@Deprecated ( since = "3.2.0" , forRemoval = true )
public String getOracleKerberosCacheFile ( ) {
public String getOracleKerberosCacheFile ( ) {
return this . oracleKerberosCacheFile ;
return getOracle ( ) . getKerberosCacheFile ( ) ;
}
}
@Deprecated ( since = "3.2.0" , forRemoval = true )
public void setOracleKerberosCacheFile ( String oracleKerberosCacheFile ) {
public void setOracleKerberosCacheFile ( String oracleKerberosCacheFile ) {
this . oracleKerberosCacheFile = oracleKerberosCacheFile ;
getOracle ( ) . setKerberosCacheFile ( oracleKerberosCacheFile ) ;
}
}
public Boolean getOutputQueryResults ( ) {
public Boolean getOutputQueryResults ( ) {
@ -838,12 +828,15 @@ public class FlywayProperties {
this . outputQueryResults = outputQueryResults ;
this . outputQueryResults = outputQueryResults ;
}
}
@DeprecatedConfigurationProperty ( replacement = "spring.flyway.sqlserver.kerberos-login-file" )
@Deprecated ( since = "3.2.0" , forRemoval = true )
public String getSqlServerKerberosLoginFile ( ) {
public String getSqlServerKerberosLoginFile ( ) {
return this . sqlServerKerberosLoginFile ;
return getSqlserver ( ) . getKerberosLoginFile ( ) ;
}
}
@Deprecated ( since = "3.2.0" , forRemoval = true )
public void setSqlServerKerberosLoginFile ( String sqlServerKerberosLoginFile ) {
public void setSqlServerKerberosLoginFile ( String sqlServerKerberosLoginFile ) {
this . sqlServerKerberosLoginFile = sqlServerKerberosLoginFile ;
getSqlserver ( ) . setKerberosLoginFile ( sqlServerKerberosLoginFile ) ;
}
}
public Boolean getSkipExecutingMigrations ( ) {
public Boolean getSkipExecutingMigrations ( ) {
@ -870,10 +863,79 @@ public class FlywayProperties {
this . detectEncoding = detectEncoding ;
this . detectEncoding = detectEncoding ;
}
}
public Oracle getOracle ( ) {
return this . oracle ;
}
public Postgresql getPostgresql ( ) {
public Postgresql getPostgresql ( ) {
return this . postgresql ;
return this . postgresql ;
}
}
public Sqlserver getSqlserver ( ) {
return this . sqlserver ;
}
/ * *
* { @code OracleConfigurationExtension } properties .
* /
public static class Oracle {
/ * *
* Whether to enable support for Oracle SQL * Plus commands . Requires Flyway Teams .
* /
private Boolean sqlplus ;
/ * *
* Whether to issue a warning rather than an error when a not - yet - supported Oracle
* SQL * Plus statement is encountered . Requires Flyway Teams .
* /
private Boolean sqlplusWarn ;
/ * *
* Path of the Oracle Kerberos cache file . Requires Flyway Teams .
* /
private String kerberosCacheFile ;
/ * *
* Location of the Oracle Wallet , used to sign in to the database automatically .
* Requires Flyway Teams .
* /
private String walletLocation ;
public Boolean getSqlplus ( ) {
return this . sqlplus ;
}
public void setSqlplus ( Boolean sqlplus ) {
this . sqlplus = sqlplus ;
}
public Boolean getSqlplusWarn ( ) {
return this . sqlplusWarn ;
}
public void setSqlplusWarn ( Boolean sqlplusWarn ) {
this . sqlplusWarn = sqlplusWarn ;
}
public String getKerberosCacheFile ( ) {
return this . kerberosCacheFile ;
}
public void setKerberosCacheFile ( String kerberosCacheFile ) {
this . kerberosCacheFile = kerberosCacheFile ;
}
public String getWalletLocation ( ) {
return this . walletLocation ;
}
public void setWalletLocation ( String walletLocation ) {
this . walletLocation = walletLocation ;
}
}
/ * *
/ * *
* { @code PostgreSQLConfigurationExtension } properties .
* { @code PostgreSQLConfigurationExtension } properties .
* /
* /
@ -895,4 +957,24 @@ public class FlywayProperties {
}
}
/ * *
* { @code SQLServerConfigurationExtension } properties .
* /
public static class Sqlserver {
/ * *
* Path to the SQL Server Kerberos login file . Requires Flyway Teams .
* /
private String kerberosLoginFile ;
public String getKerberosLoginFile ( ) {
return this . kerberosLoginFile ;
}
public void setKerberosLoginFile ( String kerberosLoginFile ) {
this . kerberosLoginFile = kerberosLoginFile ;
}
}
}
}