Flyway Group Setting
Published 15 January 2025
Description
Whether to group all pending migrations together in the same transaction when applying them (only recommended for databases with support for DDL transactions)
Note:
- If executeInTransaction is set to false, this parameter will have no impact.
- This parameter does not apply to callbacks, which can't be included in the same transaction.
- This parameter does not apply to Native Connectors, as they do not support transactions.
Type
Boolean
Default
false
Usage
Flyway Desktop
This can't be set in a config file via Flyway Desktop, although it will be honoured, and it can be configured as an advanced parameter in operations on the Migrations page.
Command-line
./flyway -group="true" info
TOML Configuration File
[flyway]
group = true
Configuration File
flyway.group=true
Environment Variable
FLYWAY_GROUP=true
API
Flyway.configure()
.group(true)
.load()
Gradle
flyway {
group = true
}
Maven
<configuration>
<group>true</group>
</configuration>