Configuration Reference
Configuration property fixed at build time - All other configuration properties are overridable at runtime
Configuration property |
Type |
Default |
|---|---|---|
Whether Flyway-MongoDB is enabled during the build. If Flyway-MongoDB is disabled, the Flyway-MongoDB beans won’t be created and Flyway won’t be usable. Environment variable: |
boolean |
|
Type |
Default |
|
Comma-separated list of locations to scan recursively for migrations. The location type is determined by its prefix. Unprefixed locations or locations starting with classpath: point to a package on the classpath and may contain both JavaScript and JSON-based migrations. Locations starting with filesystem: point to a directory on the filesystem, may only contain migration scripts and are only scanned recursively down non-hidden directories. Environment variable: |
list of string |
|
Comma-separated list of file suffixes to recognize as migration scripts. Defaults to Environment variable: |
list of string |
|
Flag to activate/deactivate Flyway for a specific MongoDB client at runtime. Environment variable: |
boolean |
|
The maximum number of retries when attempting to connect to the database. After each failed attempt, Flyway will wait up to the configured Environment variable: |
int |
|
The maximum time between retries when attempting to connect to the database. This will cap the interval between connect retries to the value provided. Environment variable: |
|
|
Optional override for the connection string Flyway uses. Defaults to the corresponding Environment variable: |
string |
|
Target database for migrations. Defaults to the corresponding Environment variable: |
string |
|
Schema history collection name. Environment variable: |
string |
|
The file name prefix for versioned migrations. Versioned migrations have the following file name structure: prefixVERSIONseparatorDESCRIPTIONsuffix, which using the defaults translates to V1.1__My_description.js Environment variable: |
string |
|
The file name prefix for repeatable migrations. Repeatable migrations have the following file name structure: prefixSeparatorDESCRIPTIONsuffix, which using the defaults translates to R__My_description.js Environment variable: |
string |
|
true to execute Flyway clean command automatically when the application starts, false otherwise. Environment variable: |
boolean |
|
true to prevent Flyway clean operations, false otherwise. Environment variable: |
boolean |
|
true to execute Flyway automatically when the application starts, false otherwise. Environment variable: |
boolean |
|
true to execute a Flyway repair command when the application starts, false otherwise. Environment variable: |
boolean |
|
true to execute a Flyway validate command when the application starts, false otherwise. Environment variable: |
boolean |
|
true to automatically execute a Flyway clean command when a validation error occurs at start, false otherwise. Environment variable: |
boolean |
|
true to execute Flyway baseline before migrations. This flag is ignored if the flyway_schema_history collection already exists. Note that this will not automatically call migrate, you must either enable baselineAtStart or programmatically call flyway.migrate(). Environment variable: |
boolean |
|
true to execute Flyway baseline automatically when the application starts. This flag is ignored if the flyway_schema_history collection already exists. Note: this does not also call migrate; pair with Environment variable: |
boolean |
|
The initial baseline version. Environment variable: |
string |
|
The description to tag an existing schema with when executing baseline. Environment variable: |
string |
|
Whether to automatically call validate when performing a migration. Environment variable: |
boolean |
|
Allows migrations to be run "out of order". Environment variable: |
boolean |
|
Ignore missing migrations when reading the history table. When set to true migrations from older versions present in the history table but absent in the configured locations will be ignored (and logged as a warning), when false (the default) the validation step will fail. Environment variable: |
boolean |
|
Ignore future migrations when reading the history table. When set to true migrations from newer versions present in the history table but absent in the configured locations will be ignored (and logged as a warning), when false (the default) the validation step will fail. Environment variable: |
boolean |
|
Sets the placeholders to replace in migration scripts. Environment variable: |
Map<String,String> |
|
Prefix of every placeholder (default: ${ ) Environment variable: |
string |
|
Suffix of every placeholder (default: } ) Environment variable: |
string |
|
Whether to validate migrations and callbacks whose scripts do not obey the correct naming convention. A failure can be useful to check that errors such as case sensitivity in migration prefixes have been corrected. Environment variable: |
boolean |
|
Ignore migrations during validate and repair according to a given list of patterns. When this configuration is set, the ignoreFutureMigrations and ignoreMissingMigrations settings are ignored. Patterns are comma separated. Environment variable: |
list of string |
|
About the Duration format
To write duration values, use the standard You can also use a simplified format, starting with a number:
In other cases, the simplified format is translated to the
|