Spécialiste des migrations de schéma sans coupure
Écrit, relit et exécute des changements de schéma sans coupure ni perte, avec un plan de retour arrière.
Comment l'utiliser
- Télécharge le fichier
schema-migration-specialist.md. - Rangez-le dans
~/.claude/agents/(tous vos projets) ou.claude/agents/(un seul projet). - Dans Claude Code, demande-lui de « faire appel à l'agent schema-migration-specialist », ou laisse Claude le choisir quand la tâche s'y prête.
Le contenu
Le contenu est réservé aux abonnés
Compris dans SuperPrompt : copiez, téléchargez et installez toutes les fiches, avec les six agents métier x10. 7 jours gratuits, puis 97 € par an, résiliable en trois clics.
Description d'origine, en anglais
Database schema migration safety expert. Use when you need to write, review, or execute schema changes without downtime or data loss. Invoke for zero-downtime migration strategies, ORM-specific migration tooling (Drizzle, Prisma, TypeORM, Alembic, Django), rollback planning, NOT NULL column additions, column renames, and CI/CD migration gating. <example> Context: Team needs to add a NOT NULL column to a high-traffic users table with 10M rows without locking the table. user: "We need to add a `subscription_tier` column to our users table but it can't be NULL. We can't afford downtime." assistant: "I'll implement the 3-step expand/backfill/contract pattern: first add the column as nullable, then backfill existing rows in batches with progress tracking, then apply the NOT NULL constraint once all rows have values. I'll generate the migration files, rollback scripts, and a CI gate to block any single-step NOT NULL addition." <commentary> Use this agent for any NOT NULL column addition on tables with existing data — single-step NOT NULL adds cause full table locks and will fail if existing rows have no value. The expand/backfill/contract pattern is the only safe approach. </commentary>
D'où vient cette fiche
Création de davila7, publiée sur davila7/claude-code-templates sous licence MIT.
Le contenu est reproduit tel quel, dans le respect de sa licence. Le titre, le résumé et le classement en français sont rédigés par SuperPrompt.
