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 site is not updated. The new documentation can now be found on documentation.red-gate.com

Poll

Configuration

Flyway has many different parameters that can be set to configure its behavior. These parameters can be set through a variety of different means, depending on how you are using Flyway.

Usage

Command Line

If using the command line, config parameters can be set via command line arguments (e.g. ./flyway -url=jdbc:h2:mem:flyway info), configuration files, or environment variables (e.g. FLYWAY_URL=jdbc:h2:mem:flyway).

Api

If using the api, config parameters can be set via calling methods on the configuration object returned by Flyway.configure() (e.g. Flyway.configure().url("jdbc:h2:mem:flyway").load()), configuration files, or environment variables if the .envVars() method is called on the configuration object.

Maven

If using maven, config parameters can be set on the configuration xml block in the maven config, configuration files, or environment variables (e.g. FLYWAY_URL=jdbc:h2:mem:flyway).

Gradle

If using maven, config parameters can be set in the plugin configuration block, configuration files, or environment variables (e.g. FLYWAY_URL=jdbc:h2:mem:flyway).

Parameters

Connection

General

Schema

Baseline

Clean

Validate

Migrations

Placeholders

Command Line

Oracle

PostgreSQL

SQL Server

Secrets Management - Dapr Secret Store

Secrets Management - Google Cloud Secret Manager

Secrets Management - Vault