Redgate Summit – The Database DevOps Transformation Watch now
PASS Data Community Summit logo

PASS Data Community Summit

A hybrid conference in Seattle and online

15-18 November

Flyway Documentation

This documentation is deprecated. The new documentation can now be found on documentation.red-gate.com

Poll

SQL Migration Suffixes

Description

Comma-separated list of file name suffixes for SQL migrations.

SQL migrations have the following file name structure: prefixVERSIONseparatorDESCRIPTIONsuffix, which using the defaults translates to V1_1__My_description.sql

Multiple suffixes (like .sql,.pkg,.pkb) can be specified for easier compatibility with other tools such as editors with specific file associations.

Default

.sql

Usage

Commandline

./flyway -sqlMigrationSuffixes=".sql,.pkg,.pkb" info

Configuration File

flyway.sqlMigrationSuffixes=.sql,.pkg,.pkb

Environment Variable

FLYWAY_SQL_MIGRATION_SUFFIXES=.sql,.pkg,.pkb

API

Flyway.configure()
    .sqlMigrationSuffixes(".sql,.pkg,.pkb")
    .load()

Gradle

flyway {
    sqlMigrationSuffixes = '.sql,.pkg,.pkb'
}

Maven

<configuration>
    <sqlMigrationSuffixes>.sql,.pkg,.pkb</sqlMigrationSuffixes>
</configuration>