| What it is | A lightweight, framework-agnostic database migration tool for plain SQL migrations | Database migrations as a CLI and Go library | Database schema as code: plan, lint, test and apply schema migrations, like Terraform for databases | Idempotent schema management in plain SQL for MySQL, PostgreSQL, SQLite and SQL Server |
| Features | - Plain SQL migrations
- Timestamp-versioned migrations
- Each migration in a transaction
- Rollback
- schema.sql export
- Create and drop databases
- Wait for the database
- Go library with embedded migrations
- All 9 features
| - 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
| - 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
| - desired-state schema migrations from a plain SQL file
- MySQL, MariaDB, TiDB, PostgreSQL, SQLite and SQL Server
- export the current schema
- dry run that shows the DDL before applying
- single binary with no dependencies
|