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

Upgrading to Flyway Teams / Enterprise

This article assumes you are a proud owner of a Flyway Teams / Enterprise license. If you are not, head over to the download/pricing page to purchase a license or start a free trial.

Upgrading from Community

If you are currently using Flyway Community and have obtained a license, first you will need to download Flyway Teams / Enterprise. You can find a link in the relevant usage section below. Please see license key to read about where to configure your license key.

Command Line

If you are using the command line, first you need to download Flyway Teams / Enterprise here. Then, simply provide your license key through any of the supported methods.

For example:

./flyway -licenseKey=FL01... info

API

If you are using the API, simply swap your dependency from org.flywaydb to org.flywaydb.enterprise. Then provide your license key through any of the supported methods.

For example:

// gradle
dependencies {
    compile 'org.flywaydb.enterprise:flyway-core:9.8.1'
}

// code
Flyway flyway = Flyway.configure()
    .licenseKey("FL01...")
    .load();
flyway.info();

Gradle

If you are using the Gradle plugin, swap the plugin dependency from id "org.flywaydb.flyway" version "9.8.1" to id "org.flywaydb.enterprise.flyway" version "9.8.1". Then provide your license key through any of the supported methods.

For example:

plugins {
    id "org.flywaydb.enterprise.flyway" version "9.8.1"
}

flyway {
    licenseKey = 'FL01...'
}

Maven

If you are using the Maven plugin, swap the plugin dependency from <groupId>org.flywaydb</groupId> to <groupId>org.flywaydb.enterprise</groupId>. Then provide your license key through any of the supported methods.

For example:

<plugin>
    <groupId>org.flywaydb.enterprise</groupId>
    <artifactId>flyway-maven-plugin</artifactId>
    <version>9.8.1</version>

    <configuration>
        <licenseKey>FL01...</licenseKey>
    </configuration>
</plugin>

New Features

Now that you are using the Teams / Enterprise edition of Flyway, you can take advantage of all the powerful new features at your disposal:

… and much more. See parameters for all the Teams configuration parameters.