What problem does it solve?
This Skill guides through the Drizzle Kit database migration workflow, automating schema changes and ensuring data consistency. It prevents manual SQL errors, streamlines schema evolution, and maintains a reliable database state for the asset-forge project.
Core Features & Use Cases
- Migration Generation: Automatically generates SQL migration files from TypeScript schema changes.
- SQL Review Guidance: Provides a checklist for reviewing generated SQL before application, preventing unintended changes.
- Migration Application: Guides through applying migrations to the database and verifying changes with Drizzle Studio.
- Use Case: After modifying a Drizzle schema file (e.g., adding a
description field to the teams table), use this skill to "create a database migration." It will generate the SQL, prompt you to review it, apply it, and suggest verifying with Drizzle Studio.
Quick Start
Generate a Drizzle Kit migration for recent schema changes in server/db/schema/.