public final class FlywayDataSourceRuntimeConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
Optional<String> |
baselineDescription
The description to tag an existing schema with when executing baseline.
|
boolean |
baselineOnMigrate
Enable the creation of the history table if it does not exist already.
|
Optional<String> |
baselineVersion
The initial baseline version.
|
boolean |
cleanAtStart
true to execute Flyway clean command automatically when the application starts, false otherwise.
|
OptionalInt |
connectRetries
The maximum number of retries when attempting to connect to the database.
|
boolean |
createSchemas
Whether Flyway should attempt to create the schemas specified in the schemas property
|
boolean |
ignoreMissingMigrations
Ignore missing migrations when reading the history table.
|
boolean |
migrateAtStart
true to execute Flyway automatically when the application starts, false otherwise.
|
boolean |
outOfOrder
Allows migrations to be run "out of order".
|
Optional<String> |
placeholderPrefix
Prefix of every placeholder (default: ${ )
|
Map<String,String> |
placeholders
Sets the placeholders to replace in SQL migration scripts.
|
Optional<String> |
placeholderSuffix
Suffix of every placeholder (default: } )
|
Optional<String> |
repeatableSqlMigrationPrefix
The file name prefix for repeatable SQL migrations.
|
Optional<List<String>> |
schemas
Comma-separated case-sensitive list of schemas managed by Flyway.
|
Optional<String> |
sqlMigrationPrefix
The file name prefix for versioned SQL migrations.
|
Optional<String> |
table
The name of Flyway's schema history table.
|
boolean |
validateOnMigrate
Whether to automatically call validate when performing a migration.
|
| Constructor and Description |
|---|
FlywayDataSourceRuntimeConfig() |
| Modifier and Type | Method and Description |
|---|---|
static FlywayDataSourceRuntimeConfig |
defaultConfig()
Creates a
FlywayDataSourceRuntimeConfig with default settings. |
@ConfigItem public OptionalInt connectRetries
@ConfigItem public Optional<List<String>> schemas
@ConfigItem public Optional<String> table
@ConfigItem public Optional<String> sqlMigrationPrefix
@ConfigItem public Optional<String> repeatableSqlMigrationPrefix
@ConfigItem public boolean cleanAtStart
@ConfigItem public boolean migrateAtStart
@ConfigItem public boolean baselineOnMigrate
@ConfigItem public Optional<String> baselineVersion
@ConfigItem public Optional<String> baselineDescription
@ConfigItem public boolean validateOnMigrate
@ConfigItem public boolean outOfOrder
@ConfigItem public boolean ignoreMissingMigrations
@ConfigItem public Map<String,String> placeholders
@ConfigItem(defaultValue="true") public boolean createSchemas
@ConfigItem public Optional<String> placeholderPrefix
@ConfigItem public Optional<String> placeholderSuffix
public static final FlywayDataSourceRuntimeConfig defaultConfig()
FlywayDataSourceRuntimeConfig with default settings.FlywayDataSourceRuntimeConfigCopyright © 2020 JBoss by Red Hat. All rights reserved.