migrate

Synchronize Drizzle ORM schema changes across local and production PostgreSQL databases.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents common and dangerous mistakes by ensuring your Drizzle database schema changes are safely applied to both your local development environment and the production database.

Core Features & Use Cases

  • Dual Database Synchronization: Pushes schema changes to both local Supabase and production Railway PostgreSQL databases.
  • Safety First: Includes dry-run previews and explicit confirmation steps to prevent accidental production changes.
  • Use Case: After updating your src/db/schema.ts file with new table definitions, use this Skill to reliably update your local development database and then your production database.

Quick Start

Use the migrate skill to push schema changes to both local and production databases.

Frequently Asked Questions about migrate

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

FAQPage Schema
How do I safely apply Drizzle schema migrations to a production database?

To safely apply Drizzle schema migrations to a production database, this Skill automates synchronization across PostgreSQL environments using dry-run previews and explicit user confirmation steps to prevent accidental changes.

What is the best way to sync Drizzle ORM schema changes across local and production PostgreSQL databases?

Syncing Drizzle ORM schema changes across local and production PostgreSQL databases is best handled by automating the migration process with safety checks, ensuring updates to both development and production environments are applied reliably.

Do I need Drizzle ORM and expect to automate database migrations?

Yes, you need Drizzle ORM for schema definitions and the expect utility for interactive TUI automation to properly automate database migrations and handle the required user confirmation prompts.

When should I use an automated migration tool for PostgreSQL?

You should use an automated migration tool for PostgreSQL when updating schema files with new table definitions, preventing dangerous mistakes by ensuring changes are safely applied to both local development and production environments.

Why does applying Drizzle migrations directly to production fail safely?

Applying Drizzle migrations directly to production fails safely because the Skill enforces dry-run previews and explicit confirmation steps, stopping accidental production database changes before they happen.