Redgate Flyway

Validate Migration Naming

Validate Migration Naming

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.

Note: This parameter is not respected by Native Connectors, and is always treated as false.

Default

false

Usage

Commandline

./flyway -validateMigrationNaming="true" info

TOML Configuration File

[flyway]
validateMigrationNaming = true

Configuration File

flyway.validateMigrationNaming=true

Environment Variable

FLYWAY_VALIDATE_MIGRATION_NAMING=true

API

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

Gradle

flyway {
    validateMigrationNaming = true
}

Maven

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

Didn't find what you were looking for?