| What it is | Database migration tool for SQL files and Go functions | Database migrations as a CLI and Go library | Track, version, deploy and roll back database schema changes across 70+ databases | Database schema as code: plan, lint, test and apply schema migrations, like Terraform for databases |
| Features | - SQL migration files
- migrations written as Go functions
- Go migrations run inside a transaction
- no config files
- timestamped or sequential versions
- usable as a Go library or a CLI
| - CLI and Go library
- drivers for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB, ClickHouse and more
- migration sources: files, embedded files, GitHub, S3, GCS
- separate up and down migration files
- database given as a connection URL
| - Changesets in SQL, XML, YAML or JSON
- Rollback
- Change history per database
- CLI and Docker image
- Maven, Gradle, Ant, Spring Boot and GitHub Actions integrations
- Secure: policy checks, change intelligence and enterprise support
| - declarative schema migrations from SQL or HCL
- versioned migration files generated from schema changes
- migration linting for data loss, locks and breaking changes
- schema drift detection
- Kubernetes operator and Terraform provider
- ORM integrations
- schema testing framework
|