Redgate Flyway

For PostgreSQL users - where are your DBs hosted?

Flyway Validate Migration Naming Setting

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

./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?