Database Migration Tools
Database Migrations for SQLAlchemy
★ 4.7
Database Migration Tool
★ 4.6
pip install alembicpip install python-flywaypip install alembicpip install python-flywayAlembic is the standard migration tool for SQLAlchemy-based Python projects. Engineers run `alembic revision --autogenerate` to create a migration script from model changes, review and edit the script, then apply it with `alembic upgrade head`. This ensures database schema changes are versioned, reviewed, and applied consistently across dev, staging, and production.
Python data engineers use Flyway when SQL migrations need to be shared across polyglot teams. The CLI is invoked from Python scripts, Makefiles, or CI pipelines via subprocess — pointing Flyway at a directory of numbered SQL files and a JDBC connection string. This makes it easy to apply identical migrations to dev, staging, and production databases in automated deployments.
Individual Tool Pages