Safe Migration

Run the safe Drizzle migration ritual for a repo with a fragile migration directory: pick the next free prefix, generate, grep the SQL for destructive operations, enforce IF EXISTS, run the migration check, and confirm schema lands with its migration in one commit. Use when the user changes a Drizzle schema file, says 'generate a migration', 'add a column/table', 'db:generate', or is about to ship a schema change.

ritmillio d047103 3 files · 9.5 KB Updated

File contents

ritmillio/skills/tree/main/skills/engineering/safe-migration commit d047103786

Frequently asked questions

npx skillmds@latest add ritmillio/safe-migration