本文へスキップ
Kitbay
スキル公式

generate-migration

NOASSERTION2026年11月11日 更新45,751GitHubスター

A maintainer skill in Sentry's own repository for creating and reviewing Django database migrations in Sentry's code.

スキルの内容

A maintainer skill in Sentry's own repository for creating and reviewing Django database migrations in Sentry's code. It gives the sentry django makemigrations commands, including empty migrations for data changes, and asks the agent to check the SQL and apply the migration locally, where Sentry runs safety checks. Rules cover keeping the generated post-deployment comment, testing data migrations and backfills with Sentry's migration test case and historical models, adding columns with database defaults, adding indexes on large tables after deployment to avoid a five-second timeout, removing columns and models in two pull requests with Sentry's safe delete operations, never renaming columns or tables in Postgres, and fixing lockfile conflicts with a script.

できること

  • Generate Django migrations for Sentry
  • Test data migrations with historical models
  • Remove columns and models in two phases
  • Resolve migration lockfile conflicts