db-migrate

Installation
SKILL.md

Database Migration Skill

Create schema changes with proper migrations.

CRITICAL: Never Write Migrations By Hand

ALWAYS use drizzle-kit generate to create migrations. NEVER write SQL migration files manually.

Why this matters:

  • Drizzle tracks schema state via snapshot files in drizzle/meta/
  • Hand-written migrations don't update snapshots
  • This causes drizzle-kit generate to fail with confusing prompts about tables being "created or renamed"
  • It breaks the entire migration system for future changes

If you're tempted to write SQL by hand (e.g., for data migrations), create a separate script in scripts/ instead.

Before Starting

Installs
1
GitHub Stars
79
First Seen
2 days ago
db-migrate — getsentry/abacus