Pular para o conteúdo
Kitbay
SkillOficial

generate-migration

NOASSERTIONAtualizado em 11 de nov. de 202645.751Estrelas no GitHub

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

O que a skill ensina

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.

O que faz

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