serverpod-migrations

Official

Safely manage your Serverpod database schema.

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 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."

Dependency Matrix

Required Modules

None required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.