Skip to main content

compare-two-database-schemas

Compare two database schemas across objects, types, defaults, constraints, indexes, permissions, functions, and migration meaning. Use when environments or versions may have drifted.

소스 정보

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

설치 방법

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

소스 파일 검토

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

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
compare-two-database-schemas
category
code
description
Compare two database schemas across objects, types, defaults, constraints, indexes, permissions, functions, and migration meaning. Use when environments or versions may have drifted.
# compare-two-database-schemas ## When to use - Use for migration validation, incident diagnosis, release review, or drift detection. - Do not apply generated destructive changes without data and rollback review. ## Preconditions - Record engines, versions, databases, namespaces, migration revisions, and authorized metadata access. ## Procedure 1. Export normalized metadata from both sides. 2. Compare tables, columns, types, nullability, defaults, generated values, and identity. 3. Compare keys, checks, relationships, indexes, partitions, views, functions, triggers, and sequences. 4. Compare roles, ownership, grants, policies, collations, extensions, and settings. 5. Separate semantic differences from ordering or engine-generated noise. 6. Map each material difference to migration history, data risk, and reversible action. ## Failure plan - If engine versions differ, label unsupported equivalence rather than forcing a textual diff. ## Worked example A missing partial unique index explains duplicate active subscriptions despite matching column definitions. ## Done - A schema comparison report records normalized inventories, material differences, migration linkage, risk, and action - Version, namespace, default, constraint, index, permission, semantic-noise, and rollback checks verify comparison
GitHub에서 보기