Flyway

Getting Started

Getting Started

Welcome to Flyway, database migrations made easy.

Ready to get started? Take a 5 minute tutorial:

Command Line

For non-JVM users and environments without build tools

> flyway migrate -url=... -user=... -password=...

API Usage

Migrate directly from within your application

Flyway flyway = Flyway.configure().dataSource(url, user, password).load();
flyway.migrate();

Quickstart: API

Maven usage

Seamless integration with Maven 2/3 builds

> mvn flyway:migrate -Dflyway.url=... -Dflyway.user=... -Dflyway.password=...

Quickstart: Maven

Gradle usage

Seamless integration with Gradle builds

> gradle flywayMigrate -Dflyway.url=... -Dflyway.user=... -Dflyway.password=...

Quickstart: Gradle


Didn't find what you were looking for?