Skip to main content

database-migrations

Use when: write and apply schema migrations safely without downtime or data loss.

Quellinformationen

Repository
kimtth/agent-skill-100-lines-or-less
Letzte Quellaktivität
26. Juni 2026 um 02:15
Erkannte Sprache von SKILL.md
Englisch
Sterne
2
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.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
database-migrations
description
Use when: write and apply schema migrations safely without downtime or data loss.
Goal: schema changes that are reversible, ordered, and safe in production. Use for: - adding, altering, or dropping columns and tables - coordinating schema and code deploys - avoiding locks and data loss on large tables Workflow: 1. Make each migration small, ordered, and version-controlled. 2. Prefer additive changes; split risky changes into steps. 3. Use expand-then-contract for renames and type changes. 4. Backfill data in batches to avoid long locks. 5. Deploy code that tolerates both old and new schema. 6. Verify on a production-like dataset before rollout. Expand/contract: - add new column/table, deploy dual-write code - backfill, then switch reads - remove old column only after nothing uses it Rules: - never edit an already-applied migration; add a new one - avoid long-held locks on large tables - make migrations reversible or document the rollback - test against realistic data volume, not an empty schema
Auf GitHub ansehen