Database Migration Tools
Database Migrations for SQLAlchemy
★ 4.7
Database Migrations for Flask
★ 4.5
pip install alembicpip install flask-migratepip install alembicpip install flask-migrateAlembic 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.
Flask-Migrate is used in Flask-based data applications to manage database schema changes alongside application code. When a SQLAlchemy model changes, engineers run `flask db migrate` to generate a migration script and `flask db upgrade` to apply it — keeping the database schema in sync with the application model in a Git-tracked, reviewable workflow.
Individual Tool Pages