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.

소스 정보

저장소
protosphinx/sphinxstack
최근 소스 활동
2026년 7월 29일 13:55
감지된 SKILL.md 언어
영어
스타
3
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
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
GitHub에서 보기