What problem does it solve?
It prevents schema drift and broken deployments by guiding you through creating, applying, and repairing Serverpod database migrations when your .spy.yaml models change.
Core Features & Use Cases
- Generate migrations from model changes: Creates SQL migrations when tables, fields, relations, or indexes defined with
table in .spy.yaml are added, removed, renamed, or modified.
- Apply migrations in the right lifecycle: Supports applying migrations via the
serverpod MCP tool during development, or via dart run bin/main.dart --apply-migrations when starting the server.
- Repair inconsistent database states: Uses
serverpod create-repair-migration and then applies the repair migration through the CLI restart flag when the database is inconsistent.
Quick Start
Tell the AI: "Create a migration for my latest .spy.yaml changes using the MCP flow, then apply it with apply_migrations so my running Serverpod stays in sync with the database."