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

Password

Description

The password to use to connect to the database

This can be omitted if the password is baked into the url (See Sql Server for an example), or if password is provided through another means (such as aws secrets).

Usage

Commandline

./flyway -password=mysecretpassword info

Configuration File

flyway.password=mysecretpassword

Environment Variable

FLYWAY_PASSWORD=mysecretpassword

API

Flyway.configure()
    .password("mysecretpassword")
    .load()

Gradle

flyway {
    password = 'mysecretpassword'
}

Maven

<configuration>
    <password>mysecretpassword</password>
</configuration>