Cloudflare D1 Database Migrations

•
698
•

Manages Cloudflare D1 database migrations using Drizzle ORM with specialized workflows for local and remote synchronization.

This skill provides a comprehensive workflow for handling Cloudflare D1 migrations within the Claude Code environment. It guides developers through generating schema changes with Drizzle ORM, identifying destructive SQL patterns, and applying migrations to both local and remote environments. It is especially valuable for diagnosing stuck migrations, recovering from partial failures, and implementing best practices for bulk data inserts and SQLite naming conventions.

Key Features

01Guided Drizzle ORM migration generation and SQL safety inspection
02Bulk insert batching strategies to bypass D1 parameter limits
03698 GitHub stars
04Diagnostic tools for identifying and fixing stuck or partial migrations
05Standardized naming conventions for schema-to-SQL mapping
06Synchronized local and remote D1 migration application workflows

Use Cases

01Optimizing database performance for Cloudflare Workers applications
02Setting up and deploying a new Cloudflare D1 database schema
03Troubleshooting and manually recording failed migrations in production