Back to Flyway

Flyway Validate Migration Naming Setting

documentation/Reference/Configuration/Flyway Namespace/Flyway Validate Migration Naming Setting.md

latest1.1 KB
Original Source

Description

Whether to ignore migration files whose names do not match the naming conventions.

If false, files with invalid names are ignored and Flyway continues normally. If true, Flyway fails fast and lists the offending files.

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 -validateMigrationNaming="true" info

TOML Configuration File

toml
[flyway]
validateMigrationNaming = true

Configuration File

properties
flyway.validateMigrationNaming=true

Environment Variable

properties
FLYWAY_VALIDATE_MIGRATION_NAMING=true

API

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

Gradle

groovy
flyway {
    validateMigrationNaming = true
}

Maven

xml
<configuration>
    <validateMigrationNaming>true</validateMigrationNaming>
</configuration>