DB Migration Safety

Migration-safety lint (M22) — the static contract the migration-safety auditor (MSA) and db-migration-writer enforce on a candidate migration BEFORE it runs. Checks reversibility (down migration present / expand-contract), lock level (does it take ACCESS EXCLUSIVE on a hot table), table rewrite (full-table rewrites on type/default changes), destructive ops (DROP COLUMN/TABLE, TRUNCATE), unsafe enum mutation, NOT NULL without default on a large table, and schema drift between the declarative artifact and migration history. Feeds the Performance & Scale score.

Hainrixz Updated 103 repo stars
claude-db — multi-paradigm database design, audit, and migration toolkit for Claude Code, with the Claude pixel mascot (an orange blocky creature) inspecting a

File contents

hainrixz/claude-db commit c7ce2b46b6

Frequently asked questions

npx get-skill add hainrixz/db-migration-safety