What problem does it solve?
This Skill helps you create and maintain correct Drizzle migration files without breaking the migration journal, especially when regenerating after schema changes, resolving migration order conflicts, or renaming migrations.
Core Features & Use Cases
- Generate Drizzle migrations consistently: Produces new migration SQL plus the required journal and snapshot updates for Drift/Drizzle compatibility.
- Support custom migrations: Enables non-schema operations (like PostgreSQL extensions) via a custom generation workflow that still updates migration metadata.
- Make SQL safely re-runnable: Guides defensive, idempotent patterns for CREATE TABLE, ALTER TABLE, and DROP operations to reduce re-run failures.
- Keep migration history accurate: Ensures the journal tag matches the renamed migration file so the migration timeline stays coherent.
Quick Start
Use this Skill when you need to generate or regenerate Drizzle migration SQL, then rename the migration file to a meaningful name while updating the journal tag accordingly.