This article assumes you are a proud owner of a Flyway Teams license. If you are not, head over to the download/pricing page to purchase a license or start a free trial.
If you are currently using Flyway Community there are a few things you need to do to upgrade to using Flyway Teams. The process to do so differs depending on how you are accessing Flyway, but broadly consists of telling Flyway to use the correct edition, and supplying a license key. See below for more details for each usage.
If you are using the command line, simply add the -teams
flag when you invoke Flyway (or use the environment variable FLYWAY_EDITION=teams
). Then provide your license key through any of the supported methods.
For example:
./flyway -teams -licenseKey=FL01... info
If you are using the API, simply swap your dependency from org.flywaydb.flyway
to org.flywaydb.flyway.enterprise
. Then provide your license key through any of the supported methods.
For example:
// gradle
dependencies {
compile 'org.flywaydb.enterprise:flyway-core:7.5.0'
}
// code
Flyway flyway = Flyway.configure()
.licenseKey("FL01...")
.load();
flyway.info();
If you are using the Gradle plugin, swap the plugin dependency from id "org.flywaydb.flyway" version "7.5.0"
to id "org.flywaydb.flyway.enterprise" version "7.5.0"
. Then provide your license key through any of the supported methods.
For example:
plugins {
id "org.flywaydb.flyway.enterprise" version "7.5.0"
}
flyway {
licenseKey = 'FL01...'
}
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>7.0.0</version>
<configuration>
<licenseKey>FL01...</licenseKey>
</configuration>
</plugin>
Now that you are using the Teams 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.