All Skills
Database

database-migrations

Database migration best practices: schema changes, data migration, rollback strategies, and zero-downtime deployment.

Install

npx skills add skillerdotdev/skills@database-migrations -y -g

Cross-tool: Claude Code ~/.claude/skills/ · Qoder ~/.qoder/skills/ · TRAE ~/.trae/skills/

Source

When to Use

Trigger this skill when modifying database schemas, executing data migrations, or planning zero-downtime releases.

Core Principles

Migration Order

  1. Add column (nullable or with default) → deploy code that reads new column
  2. Code writes to both old and new columns → migrate data
  3. Code writes only to new column → drop old column

Safe Changes

Zero-Downtime Strategy

Rollback

#Migration#Schema#Zero-Downtime#Rollback