Cloudflare D1 database migrations can be tricky. This guide helps you move your database schema from one version to the next. It uses Drizzle ORM to generate the SQL code. Then you check for problems before running it.
You will learn how to apply migrations to both your local and remote databases. The guide also shows how to fix migrations that get stuck or fail partway. Beginners and experts can use these steps to keep their database in sync.
Common issues like table recreation and parameter limits are explained. You get simple fixes for each one. This skill saves you time and prevents broken databases.
Global
mkdir -p ~/.claude/skills/d1-migrationProject
mkdir -p .claude/skills/d1-migrationSource Repository
Supabase Postgres Best Practicessupabase/agent-skills
Follow Supabase's expert guidelines for faster Postgres queries and smarter schema design
Firebase Data Connectfirebase/agent-skills
Build secure PostgreSQL backends with Firebase using GraphQL schemas and type-safe SDKs
Convex Migration Helperget-convex/agent-skills
Plan and run safe Convex schema migrations without downtime or data loss
Firebase Firestorefirebase/agent-skills
Master Cloud Firestore setup, queries, full-text search, security rules, and indexes
Neon Postgresneondatabase/agent-skills
Set up and manage Neon Serverless Postgres with ease and speed
Firebase Firestore Standardfirebase/agent-skills
Set up and secure Cloud Firestore with clear provisioning rules and SDK guides
Firebase Firestore Enterprise Native Modefirebase/agent-skills
Master Firestore Enterprise Native Mode provisioning data modeling security rules and SDK usage
Postgresql Table Designwshobson/agents
Design PostgreSQL tables with best practices for performance and reliability