| name | db-migrate |
|---|---|
| description | Generate and review Drizzle ORM database migrations after schema changes |
| disable-model-invocation | true |
Run the full Drizzle ORM migration workflow after schema changes.
- Review changes in
src/database/schema.tsto understand what changed - Run
npm run db:generateto generate a new migration SQL file - Read the newly generated SQL file in
src/database/migrations/and review it for correctness - Report the migration SQL to the user for confirmation before proceeding
- Only run
npm run db:migrateif the user explicitly confirms