What problem does it solve?
This Skill streamlines the complex process of managing database schema changes and migrations in Wasp projects. It prevents common errors, ensures type safety, and simplifies database setup, saving developers from frustrating data sync issues.
Core Features & Use Cases
- Guided Migration Workflow: Provides a step-by-step process for modifying
schema.prisma, running migrations, and ensuring Wasp types are updated.
- PostgreSQL Integration: Guides on setting up and using PostgreSQL, which is essential for advanced Wasp features like enums and background jobs.
- Error Prevention: Highlights critical rules like mandatory restarts and correct migration commands, preventing common "types not updating" or "database out of sync" errors.
- Use Case: Add a new
status field with an enum type to your Task model in schema.prisma. This Skill will guide you through running the migration, ensuring your database is updated, and that your Wasp application's types correctly reflect the new schema.
Quick Start
Add a new status field with an enum type to the Task model in schema.prisma. Generate and apply the migration, then restart Wasp.