drizzle-migrations

Automate Drizzle ORM migrations for Neon PostgreSQL databases.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/dvorkinguy/claude-skills-agents --skill drizzle-migrations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drizzle-migrations
Source: https://github.com/dvorkinguy/claude-skills-agents/tree/main/skills/drizzle-migrations
Command: npx skills add https://github.com/dvorkinguy/claude-skills-agents --skill drizzle-migrations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides Drift-template-driven Drizzle ORM migrations for Neon PostgreSQL, including standard schema patterns and migration commands.

Core Features & Use Cases

  • Schema patterns for common tables and relations
  • Migration workflow and CLI commands
  • Type inference helpers and relations scaffolding

Quick Start

Set up drizzle.config.ts, connect to Neon, generate migrations with drizzle-kit, review SQL, then apply to dev or prod environments.

Frequently Asked Questions about drizzle-migrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Drizzle ORM migrations for PostgreSQL on Neon?

Set up Drizzle ORM migrations by configuring drizzle.config.ts with your Neon PostgreSQL connection, defining your schema in schema.ts, then running drizzle-kit generate to create migration files. Review the generated SQL in the drizzle/ directory before applying migrations with push for development or migrate for production.

What's the workflow for generating and applying migrations with Drizzle?

Drizzle migrations follow a three-step workflow: modify your schema.ts file, run drizzle-kit generate to produce SQL migration files, then apply them using push in development environments or migrate in production. This keeps your database schema in sync with your TypeScript type definitions.

Can I use Drizzle ORM for schema management on Neon PostgreSQL?

Yes, Drizzle ORM migrations work with Neon PostgreSQL for complete schema management. You define tables and relations in schema.ts, generate migrations automatically, review the SQL output, and apply changes to development or production environments while maintaining type safety.

How do I troubleshoot migration issues with Drizzle and PostgreSQL?

Review the generated SQL files in drizzle/ before applying migrations to catch errors early. Common issues include schema mismatches between schema.ts and the database or incomplete relation definitions. Always test migrations in development before deploying to production.

What schema patterns does Drizzle support for PostgreSQL tables and relations?

Drizzle ORM supports standard PostgreSQL patterns for common tables and relational structures. Define schemas in schema.ts using type-safe helpers and relation scaffolding, then generate migrations that handle foreign keys, constraints, and table modifications automatically.