Back to Flyway

Flyway Group Setting

documentation/Reference/Configuration/Flyway Namespace/Flyway Group Setting.md

latest1.3 KB
Original Source

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:

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

powershell
./flyway -group="true" info

TOML Configuration File

toml
[flyway]
group = true

Configuration File

properties
flyway.group=true

Environment Variable

properties
FLYWAY_GROUP=true

API

java
Flyway.configure()
    .group(true)
    .load()

Gradle

groovy
flyway {
    group = true
}

Maven

xml
<configuration>
  <group>true</group>
</configuration>