Alembic
6.0#20 in database migration toolsFree planFree planSelf-hosted
Visit| Fact | Alembic | pgroll |
|---|---|---|
| CLI installation | Installed with pip and provides an alembic command | Prebuilt binaries are offered for Linux, macOS and Windows, with source installation through go install. |
| Installation | Alembic can be installed with pip and is commonly installed in a project-local Python virtual environment. | Distributed as a single Go binary via Homebrew, Go install, or binaries |
| License | MIT licensed open-source project | Apache 2.0 open-source license |
Alembic suits Python developers maintaining relational database changes in SQLAlchemy projects. It is also relevant where teams need generated SQL scripts instead of direct database execution.
pgroll suits developers managing PostgreSQL schema changes who want old and new versions to coexist during application rollout. Teams using PostgreSQL 14 with row-level security should weigh its documented limitation.