db-migrate
Create a database migration. Use when changing schema, adding tables, or modifying columns.
SKILL.md.claude/skills/db-migrate/SKILL.md
GitHubDatabase Migration
Create a new reversible database migration.
Steps
- Determine next migration number from
backend/migrations/ - Create
backend/migrations/TIMESTAMP_description.ts - Follow the migration template
- Implement both
up()anddown()functions - Test rollback: run
npm run migrate:downthennpm run migrate:up
See conventions.md for naming and patterns.
Arguments: $ARGUMENTS — description of what the migration does