Welcome to Flyway, database migrations made easy.
Ready to get started? Take a 5 minute tutorial:
For non-JVM users and environments without build tools
> flyway migrate -url=... -user=... -password=...
Get Started with the
Command-line Tool
Migrate directly from within your application
Flyway flyway = new Flyway(); flyway.setDataSource(url, user, password); flyway.migrate();Get Started with the Java API
Seamless integration with Maven 2/3 builds
> mvn flyway:migrate -Dflyway.url=... -Dflyway.user=... -Dflyway.password=...
Get Started with the Maven
Plugin
Seamless integration with Gradle builds
> gradle flywayMigrate -Dflyway.url=... -Dflyway.user=... -Dflyway.password=...
Get Started with the Gradle
Plugin
Antlib with tasks for Ant 1.8 and above
<flyway:migrate url="..." user="..." password="..."/>Get Started with the Ant Tasks
First class SBT integration
> sbt flywayMigrate -Dflyway.url=... -Dflyway.user=... -Dflyway.password=...
Get Started with the SBT plugin