Safe Migrations

Use when changing a database schema or seed/lookup data - adding or altering tables, columns, indexes, constraints, stored procedures, functions, or one-time data fixes. Every change is authored as an idempotent forward migration with a matching reverse (rollback) migration, keeps each object's canonical source file authoritative, and is applied through the migration pipeline behind the production-write-gate, never by editing production directly. Triggers on schema change, migration, DDL, add/alter column or table or index, stored procedure, seed data, or one-time data fix.

scott-garvin b49f9d8 2.2 KB Updated

File contents

scott-garvin/claude-code-guardrails/tree/main/skills/safe-migrations commit b49f9d8c3d

Frequently asked questions

npx skillmds@latest add scott-garvin/safe-migrations