Alembic Wrap: A Wrapper for Community Edition Database Migration Tools

Alembic Wrap is a community-edition Alembic wrapper released by user_922b1001, providing encapsulated capabilities for database migration workflows. Based on the universal SKILL.md format, it is ideal for developers who need to quickly integrate migration management.

Read More
Flask Database Migration: A Guide to Using Flask-Migrate

In Flask development, manual operations to modify database structures carry risks. Flask-Migrate (based on Alembic) provides a secure migration solution. After installation, you need to associate the Flask app with the SQLAlchemy db instance. The core workflow involves: initializing the migration environment with `flask db init`, generating migration scripts after model changes using `flask db migrate -m "description"`, applying changes with `flask db upgrade`, and rolling back with `flask db downgrade`. It supports automatic detection of model changes, version control, and secure rollbacks. For complex migrations (e.g., data transformation), manual modification of migration scripts is required. The key advantage is simplifying iterative management and avoiding manual modification risks. Mastering these four commands enables efficient management of database structure changes.

Read More