serverpod-migrations
OfficialSafely manage your Serverpod database schema.
Software Engineering#database migrations#schema management#serverpod#deployment workflow#sql generation#ORM models#repair migration
Authorserverpod
Version1.0.0
Installs0
System Documentation
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
tablein.spy.yamlare added, removed, renamed, or modified. - Apply migrations in the right lifecycle: Supports applying migrations via the
serverpodMCP tool during development, or viadart run bin/main.dart --apply-migrationswhen starting the server. - Repair inconsistent database states: Uses
serverpod create-repair-migrationand 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."
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: serverpod-migrations Download link: https://github.com/serverpod/serverpod/archive/main.zip#serverpod-migrations Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.