Database Migration Generator
Generate database migrations with rollback capability for schema changes.
When to Invoke
Auto-invoke when user mentions:
- "Create migration"
- "Add table"
- "Modify schema"
- "Change database"
- "Database migration for [change]"
What This Does
- Generates migration file with timestamp
- Creates schema change SQL (up migration)
- Creates rollback SQL (down migration)
- Validates SQL syntax
- Follows migration tool conventions (Knex, Prisma, TypeORM)
Success Criteria
- [ ] Migration file generated with unique timestamp
- [ ] Up migration creates/modifies schema correctly
- [ ] Down migration rolls back changes
- [ ] SQL syntax is valid
- [ ] Follows naming conventions
Auto-invoke when creating database schema changes ποΈ