Overview
Flyway applies versioned migration files such as `V1__create_table.sql` in order and records database schema history. It can run from its CLI, Java, Maven, and Gradle and supports a broad range of database platforms.
Features and best fit
Based on official documentation; not hands-on tested · Content checked:
Order and track versioned and repeatable migrations
Flyway discovers unapplied migration scripts by version and naming convention, applies them in sequence, and records state in its schema-history table.
Integrate schema changes into builds and CI/CD
CLI, Maven, Gradle, and Java integration allow schema migrations to be part of application release pipelines.
For treating database changes as release artifacts instead of manual steps
Flyway fits teams that need consistent migration ordering across environments and an auditable record of applied schema versions.
Distinguish Flyway OSS from Redgate commercial editions
The README states that the Apache-2.0 OSS CLI project is separate from Redgate editions that provide GUI and additional capabilities. Confirm edition boundaries for required features.
Official sources
- [1]flyway/flyway repository(2026-09-20)
- [2]Flyway README(2026-09-20)
- [3]Flyway Apache-2.0 license(2026-09-20)
- [4]Flyway documentation(2026-09-20)
Supplemental curator note
Flyway is useful when database schema changes should move through the same release flow as application code, with migration files and schema history recording applied versions. The README explicitly separates the open-source CLI project from Redgate commercial editions with GUI and additional capabilities.
Try it in 3 steps
- 1
Install the Flyway OSS CLI
Install the Apache-2.0 Flyway OSS CLI rather than a Redgate commercial edition.
https://documentation.red-gate.com/flyway/reference/usage/flyway-open-source - 2
Create the first migration file
Create a version 1 schema migration using the Flyway naming convention.
mkdir -p sql && printf 'CREATE TABLE demo (id INT PRIMARY KEY, name VARCHAR(100));\n' > sql/V1__create_demo.sql - 3
Migrate a local H2 file database
Use the H2 driver shipped with the CLI to apply the migration and inspect Flyway schema history locally.
flyway -url=jdbc:h2:file:./flyway-demo -user=sa -locations=filesystem:sql migrate && flyway -url=jdbc:h2:file:./flyway-demo -user=sa -locations=filesystem:sql info
Growth
Growth trends · Last 30 days
10,100 Stars
Trend data is still being collected.
Development activity
Last 90 days · weekly
- Commits (last 30 days)
- 4
- Open PRs
- 38
- Issues opened
- 18
- Issues closed
- 22
- PRs opened
- 15
- PRs merged
- 0
Issues
18 / 22
Pull requests
15 / 0
Maintenance
- Median first response
- Not specified
- Issue response rate
- 0% (0/18)
Based on up to the 100 newest issues opened by external users in the last 90 days. A first comment from an OWNER, MEMBER, or COLLABORATOR counts as a response; issues whose full comment history cannot be checked are excluded. The median and response rate update weekly.
Built with
Categories and tags
GitHub data
GitHub dataView detailed GitHub data
GitHub Topics
- flyway
- java
- database-migrations
- java-library
- continuous-delivery
- devops
- sql
- continuous-deployment
- database
- database-deployment
- database-administration
- database-management
- Stars
- 10,100
- Forks
- 1,632
- Watchers
- 173
- Open issues
- 220
- Contributors
- 121
- Primary language
- Java
- License
- Apache-2.0
- Repository last updated
- Sep 15, 2026
Related information
Write a related articleShare a guide or use case for this OSS in Markdown. Articles are published after administrator approval.
Explore next
- Supabase110,326 Stars
An open Postgres development platform combining Database, Auth, APIs, Realtime, Storage, and Functions.
TypeScript - Elasticsearch77,937 Stars
A distributed engine for full-text and vector search, analytics, logs, and metrics.
Java - Redis76,404 Stars
An in-memory data platform for low-latency caching, data structures, search, and messaging.
C - NocoDB65,015 Stars
A self-hostable spreadsheet-style database interface with multiple views, access control, automation integrations, and REST APIs.
TypeScript - PocketBase61,101 Stars
A self-hostable Go backend combining SQLite, realtime data, auth, files, admin UI, and APIs.
Go
Report incorrect information
Tell us if any listing information is incorrect or outdated.