Database Migration Management with Flask-Migrate
Flask-Migrate is an extension that integrates Alembic into Flask applications, enabling tracking of model changes and mapping them to the database.
Install Flask-Migrate via pip:
pip install flask-migrate
A typical project structure includes:
config.py
app.py
manager.py
models.py
Define database configuration in config.py:
class Config:
...
Posted on Fri, 02 Oct 2026 16:05:46 +0000 by TWD