New! – Spin up instant copies of your dev databases in the cloud for free Learn more

Flyway Documentation

Poll

Get Started

Welcome to Flyway, database migrations made easy.

Flyway

Why database migrations?

 

 

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 How Flyway works

Migrate directly from within your application

Flyway flyway = Flyway.configure().dataSource(url, user, password).load();
flyway.migrate();
Get Started with the Java API How Flyway works

Seamless integration with Maven 2/3 builds

> mvn flyway:migrate -Dflyway.url=... -Dflyway.user=... -Dflyway.password=...
Get Started with the Maven Plugin How Flyway works

Seamless integration with Gradle builds

> gradle flywayMigrate -Dflyway.url=... -Dflyway.user=... -Dflyway.password=...
Get Started with the Gradle Plugin How Flyway works