Back to Flyway

Flyway Email Setting

documentation/Reference/Configuration/Flyway Namespace/Flyway Email Setting.md

latest1.1 KB
Original Source

Description

A Redgate email to be used in conjunction with the token parameter to configure a personal access token (PAT). Used to authenticate Flyway to use either Teams or Enterprise.

Type

String

Default

<i>none</i>

Usage

Flyway Desktop

Not needed in conjunction with Flyway Desktop as Flyway Desktop will handle auth.

Command-line

bash
./flyway -email="[email protected]" -token="1234ABCD"

TOML

toml
[flyway]
email = "[email protected]"
token = "1234ABCD"

Environment Variable

properties
[email protected]
FLYWAY_TOKEN=1234ABCD

Maven

xml
<configuration>
  <pluginConfiguration>
    <email>[email protected]</email>
    <token>1234ABCD</token>
  </pluginConfiguration>
</configuration>

API

java
Flyway flyway = Flyway.configure().load();
flyway.getConfigurationExtension(PATTokenConfigurationExtension.class)
        .setEmail("[email protected]");
flyway.getConfigurationExtension(PATTokenConfigurationExtension.class)
        .setToken("1234ABCD");