PocketBase Migrations

•
24k
•

Manages schema migrations, versioning, and programmatic collection creation for PocketBase databases.

This skill empowers Claude with specialized knowledge to handle the complete lifecycle of PocketBase schema management. It provides comprehensive patterns for using the PocketBase CLI, managing auto-migrate workflows, and writing robust JavaScript migration files. From creating complex collection types—including base, auth, and view collections—to implementing raw SQL and handling application bootstrapping, this skill ensures that database changes are versioned, reversible, and consistent across development and production environments.

Key Features

01Automated and manual schema migration workflows
0224,164 GitHub stars
03Reversible migration templates with UP and DOWN logic
04Safe deployment patterns using snapshots and history-sync
05Programmatic collection creation for base, auth, and view types
06CLI command integration for migration history and snapshots

Use Cases

01Initializing a production-ready schema with version-controlled migrations
02Syncing collection structures between local development and remote environments
03Automating the creation of superusers and initial app settings during deployment