Skip to main content

manage-database-schema-changes

Manage database schema changes through compatible expansion, backfill, dual behavior, validation, contraction, and rollback-aware release order. Use when live applications and data evolve together.

Quellinformationen

Repository
protosphinx/sphinxstack
Letzte Quellaktivität
29. Juli 2026 um 13:55
Erkannte Sprache von SKILL.md
Englisch
Sterne
3
Forks
0

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

Datei-Explorer
2 Dateien

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
manage-database-schema-changes
category
code
description
Manage database schema changes through compatible expansion, backfill, dual behavior, validation, contraction, and rollback-aware release order. Use when live applications and data evolve together.
# manage-database-schema-changes Keep old and new application versions compatible during rollout. ## When to use - Use for tables, columns, types, constraints, indexes, relationships, partitions, or ownership changes. - Do not combine destructive schema change, full backfill, and application switch in one unverified release. ## Procedure 1. Inventory readers, writers, jobs, reports, replicas, constraints, volume, locks, and rollback needs. 2. Define target invariant and mixed-version compatibility window. 3. Expand with additive nullable or backward-compatible structures and safe indexes. 4. Deploy code that can read old and new state and write according to a documented transition. 5. Backfill in restartable, throttled batches with checkpoints and reconciliation. 6. Validate completeness and introduce constraints using low-lock techniques. 7. Switch reads, stop old writes, observe, and prove no old consumer remains. 8. Contract obsolete structures only after retention and rollback gates expire. 9. Test production-shaped load, lock behavior, replica lag, failure, resume, and rollback. ## Done - A schema-change plan records consumers, compatibility stages, backfill, validation, constraints, release order, and contraction gates - Rehearsal proves lock bounds, restart, reconciliation, mixed-version behavior, rollback, and final invariants
Auf GitHub ansehen