Database Migration Tools
Database Migrations for Flask
★ 4.5
Database Migration Tool
★ 4.6
pip install flask-migratepip install python-flywaypip install flask-migratepip install python-flywayFlask-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.
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