Skip to content
Back to skills

Safe Schema Migrations

ASecurity

Evolve schemas without downtime: expand/contract (add -> backfill in batches -> switch -> drop) across separate deploys, lock-aware DDL (create indexes CONCURRENTLY, nullable-add-then-validate), reversibility, and ordered versioned migrations.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentsdevops

Security analysis

A100/100

Scanned September 23, 2026

npx -y skills add mcorbett51090/RavenClaude --skill safe-schema-migrations --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Safe Schema Migrations?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Safe Schema Migrations
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mcorbett51090-safe-schema-migrations/badge)](https://www.skillsdirectory.com/skills/mcorbett51090-safe-schema-migrations)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: safe-schema-migrations
description: "Evolve schemas without downtime: expand/contract (add -> backfill in batches -> switch -> drop) across separate deploys, lock-aware DDL (create indexes CONCURRENTLY, nullable-add-then-validate), reversibility, and ordered versioned migrations."
---

# Safe Schema Migrations

## Expand/contract
Add new (safely) -> **backfill in batches** -> dual-write/switch reads -> drop old. Across **separate deploys**. A rename = add-copy-switch-drop, not `ALTER RENAME` mid-traffic.

## Lock awareness
Volatile-default add, type change, or `SET NOT NULL` can lock the table. Use: nullable add + batched backfill + `ADD CONSTRAINT ... NOT VALID` then `VALIDATE`; create indexes **CONCURRENTLY**.

## Reversible + ordered
Every migration has a down path / tested rollback. Versioned, ordered, never edit a shipped migration. Sequence with `devops-cicd/release-engineer`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…