Zum Inhalt springen
Kitbay

generate-migration

NOASSERTIONAktualisiert am 11. Nov. 202645.751GitHub-Sterne

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

Was der Skill vermittelt

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.

Funktionen

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