Alembic Migration Patterns

0•

Automates the generation and fixing of SQLAlchemy Alembic migrations to handle complex types and constraints safely.

Alembic Migration Patterns is a specialized skill for Claude Code designed to solve common headaches in Python database migrations. It enhances the standard Alembic workflow by automatically handling edge cases that autogenerate often misses, such as proper Enum type lifecycle management, foreign key ordering in downgrades, and safe data migration patterns for nullable column changes. By providing domain-specific guidance and automated fixers, it ensures your database schema evolutions are robust, reversible, and production-ready.

주요 기능

01Optimized Foreign Key operation sequencing for reliable downgrades
02Automatic Enum type creation and deletion in migration scripts
03Batch data update templates for large table migrations
04Automated migration reviewer agent for error detection
05Safe data migration patterns for transitioning nullable constraints
060 GitHub stars

사용 사례

01Ensuring migration rollbacks (downgrades) don't fail due to constraint dependencies
02Changing column nullability without losing existing database data
03Generating production-grade migrations for PostgreSQL Enum types