Back to Flyway

Flyway Namespace

documentation/Reference/Configuration/Flyway Namespace.md

latest21.7 KB
Original Source

This namespace contains the configurations specific to the Flyway engine.

General settings

SettingTierTypeDescription
communityDBSupportEnabledCommunityBooleanEnables support for community databases.
environmentCommunityStringThe target environment.
kerberosConfigFileTeamsStringThe path to the your Kerberos configuration file.
loggersCommunityString arrayLoggers to use.
reportEnabledCommunityBooleanWhether to enable generating a report file.
reportFilenameCommunityStringFilename for the report file.
provisionModeCommunityStringUse a specific provision mode for the target environment

Migration location and naming settings

SettingTierTypeDescription
baselineMigrationPrefixCommunityStringThe file name prefix for baseline migrations.
failOnMissingLocationsCommunityBooleanWhether to fail if a location doesn't exist.
jarDirsCommunityString arrayDirectories containing JDBC drivers and Java-based migrations.
locationsCommunityString arrayLocations to scan recursively for migrations.
repeatableSqlMigrationPrefixCommunityStringThe file name prefix for repeatable migrations.
sqlMigrationPrefixCommunityStringThe file name prefix for versioned migrations.
sqlMigrationSeparatorCommunityStringThe file name separator for migrations.
sqlMigrationSuffixesCommunityString arrayThe file name suffixes for migrations.
migrationResolversCommunityString arrayCustom migration resolvers for resolving migrations to apply.
skipDefaultResolversCommunityBooleanSkip built-in migration resolvers.
undoSqlMigrationPrefixTeamsStringThe file name prefix for undo migrations.
validateMigrationNamingCommunityBooleanError on migration files whose names do not match the naming conventions.

Migration reading settings

SettingTierTypeDescription
detectEncodingCommunityBooleanWhether Flyway should attempt to auto-detect the file encoding of each migration.
encodingCommunityStringThe encoding of migration scripts.
placeholderPrefixCommunityStringThe prefix of every placeholder.
placeholderReplacementCommunityBooleanWhether placeholders should be replaced.
placeholderSeparatorCommunityStringThe separator of default placeholders.
placeholderSuffixCommunityStringThe suffix of every placeholder.
scriptPlaceholderPrefixCommunityStringThe prefix of every script migration placeholder.
scriptPlaceholderSuffixCommunityStringThe suffix of every script migration placeholder.

Migration execution settings

SettingTierTypeDescription
batchCommunityBooleanWhether to batch SQL statements when executing them.
callbackLocationsCommunityString arrayLocations to scan recursively for callbacks to use to hook into the Flyway lifecycle.
callbacksCommunityString arrayCallbacks to use to hook into the Flyway lifecycle.
cherryPickTeamsString arrayA list of migrations that Flyway should consider when migrating.
createSchemasCommunityBooleanCreate the configured schemas if they do not exist.
dryRunOutputTeamsStringFile path to output a dry run script to.
errorOverridesTeamsString arrayRules for the built-in error handler.
executeInTransactionCommunityBooleanWhether to execute scripts within a transaction.
groupCommunityBooleanWhether to group all pending migrations together in the same transaction when applying them.
installedByCommunityStringThe username that will be recorded in the schema history table as having applied a migration.
lockRetryCountCommunityIntegerNumber of times to try and take a lock at 1s intervals when migrating.
mixedCommunityBooleanAllow mixing transactional and non-transactional statements within the same migration.
outOfOrderCommunityBooleanAllow migrations to be run out of order.
outputQueryResultsCommunityBooleanOutput a table with the results of queries when executing migrations.
skipDefaultCallbacksCommunityBooleanSkip built-in callbacks.
skipExecutingMigrationsCommunityBooleanSkip migration execution.
streamCommunityBooleanStream migrations when executing them.
targetCommunityStringThe target version up to which to consider migrations.
validateOnMigrateCommunityBooleanRun validate command when running migrate command.

Flyway schema history settings

SettingTierTypeDescription
defaultSchemaCommunityStringThe schema in which to create Flyway's schema history table.
tableCommunityStringThe name of Flyway's schema history table.
tablespaceCommunityStringThe tablespace in which to create Flyway's schema history table.

Schema model settings

SettingTierTypeDescription
schemaModelLocationCommunity*StringThe location of the schema model folder.
schemaModelSchemasCommunity*String arrayschemas that should be supported by the schema model folder.

Authentication settings

SettingTierTypeDescription
emailCommunityStringEmail to be used in conjunction with a personal access token.
tokenCommunityStringPersonal access token used for licensing Flyway.

Flyway Pipelines integration settings

{% include preview.html %}

SettingTierTypeDescription
checkDriftOnMigrateCommunityBooleanEnables automatic drift checks on migrate.
pipelineIdCommunityStringAn id for identifying your pipeline.
publishResultCommunityBooleanWhether to publish the result of your Flyway run to Flyway Pipelines.

Baseline settings

SettingTierTypeDescription
baselineDescriptionCommunityStringThe Description to tag an existing schema with when executing baseline.
baselineOnMigrateCommunityBooleanRun baseline command when running migrate command.
baselineVersionCommunityStringThe version to tag an existing schema with when executing baseline.

Clean settings

SettingTierTypeDescription
cleanDisabledCommunityBooleanWhether to disable clean.

Validation settings

SettingTierTypeDescription
ignoreMigrationPatternsCommunityString arrayIgnore migrations during validate and repair according to a given list of patterns.

General namespaces

NamespaceDescription
placeholdersPlaceholders to replace in migrations.

Database-specific namespaces

NamespaceDescription
clickhouseSettings specific to Clickhouse.
db2zSettings specific to DB2 zOS.
oracleSettings specific to Oracle.
postgresqlSettings specific to PostgreSQL.
sqlserverSettings specific to SQL Server.

Command-specific namespaces

NamespaceTierDescription
addCommunitySettings specific to the add command.
checkTeams/EnterpriseSettings specific to the check command.
deployCommunitySettings specific to the deploy command.
diffTeamsSettings specific to the diff command.
diffTextTeamsSettings specific to the diffText command.
generateEnterpriseSettings specific to the generate command.
initCommunitySettings specific to the init command.
migrateTeamsSettings specific to the migrate command.
modelTeamsSettings specific to the model command.
prepareEnterpriseSettings specific to the prepare command.
snapshotEnterpriseSettings specific to the snapshot command.
undoEnterpriseSettings specific to the undo command.

Secrets management namespaces

Usage of per-environment resolvers is preferred.

NamespaceDescription
daprSettings specific to Dapr.
gcsmSettings specific to Google Cloud Secret Manager.
vaultSettings specific to Vault.

Deprecated settings

SettingTierTypeDescription
licenseKeyTeamsStringYour Flyway license key.

* There is no license restriction on this setting strictly speaking, but it is used to configure functionality which is only available at Teams and above.