db-migration-check
Purpose
Verify that model/schema changes have corresponding Alembic migration files.
Trigger
When models/ directory files are modified.
What it does
- Checks
git diffformodels/*.pyormodels/**/*.pychanges - Checks for new
alembic/versions/*.pyormigrations/versions/*.pyfiles - Reports error if model changes exist without corresponding migration
Usage
bash .skills/db-migration-check/scripts/check.sh