Versioned SQL database migrations for 50+ databases, open source with Redgate's enterprise editions
open sourceApache-2.0free
Flyway applies versioned database migrations, plain SQL or Java, to every environment in order and records which ones have run, so each database's schema matches the code. The open source edition is a CLI, a Java API and Maven and Gradle plugins, and runs on Windows, macOS, Linux and in Docker. It supports more than 50 databases, including PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake, BigQuery and CockroachDB, with more from community plugins.
Redgate, which maintains it, also sells Flyway Enterprise, which adds a GUI, policy checks before merge, schema drift detection, generated rollback scripts, an audit trail and CI/CD integration with GitHub, Azure DevOps and Jenkins. Flyway Community is Redgate's free edition for individuals.
Ways to install
Package managers
Problems it solves
- version and apply SQL database migrations in CI across environments
- keep the database schema in sync across dev, staging and production
- run plain SQL migration files in order and track which ones have been applied
Features
- Versioned SQL and Java migrations
- Command-line tool, Java API, Maven and Gradle plugins
- More than 50 supported databases
- Docker image
- Enterprise: policy-as-code checks, drift detection and generated rollback scripts
- Enterprise: audit trail and CI/CD integrations
Alternatives
The same job
These do what Flyway does.
- golang-migrate Database migrations as a CLI and Go library
- Bytebase The standard for database governance
- Liquibase Track, version, deploy and roll back database schema changes across 70+ databases
- sqldef Idempotent schema management in plain SQL for MySQL, PostgreSQL, SQLite and SQL Server
- Atlas Database schema as code: plan, lint, test and apply schema migrations, like Terraform for databases
- Reshape An easy-to-use, zero-downtime schema migration tool for Postgres
