django-migrations
2
总安装量
2
周安装量
#70989
全站排名
安装命令
npx skills add https://github.com/posthog/posthog --skill django-migrations
Agent 安装分布
amp
2
cline
2
opencode
2
cursor
2
kimi-cli
2
codex
2
Skill 文档
Django migrations
Read these files first, before writing or editing a migration:
docs/published/handbook/engineering/developing-locally.md(## Django migrations,### Non-blocking migrations,### Resolving merge conflicts)docs/published/handbook/engineering/safe-django-migrations.mddocs/published/handbook/engineering/databases/schema-changes.mdproducts/README.md(## Adding or moving backend models and migrations) when working inproducts/*
If the task is a ClickHouse migration, use clickhouse-migrations instead.
Workflow
- Classify the change as additive (new nullable column, new table) or risky (drop/rename,
NOT NULL, indexes, constraints, large data updates, model moves). - Generate:
DEBUG=1 ./manage.py makemigrations [app_label]. For merge conflicts:python manage.py rebase_migration <app> && git add <app>/migrations(posthogoree). - Apply safety rules from
safe-django-migrations.mdâ the doc covers multi-phase rollouts,SeparateDatabaseAndState, concurrent operations, idempotency, and all risky patterns in detail. - Validate:
./manage.py sqlmigrate <app> <migration_number>, run tests, confirm linear migration sequence.