db-migrate

Coordinate Drizzle ORM migrations across NeonDB and Supabase schemas.

4|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/RevealUIStudio/revealui --skill db-migrate-revealuistudio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-migrate
Source: https://github.com/RevealUIStudio/revealui/tree/main/.claude/skills/db-migrate
Command: npx skills add https://github.com/RevealUIStudio/revealui --skill db-migrate-revealuistudio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Coordinating Drizzle ORM migrations across NeonDB and Supabase to prevent drift and downtime in dual-database deployments.

Core Features & Use Cases

  • Guided migration workflow that keeps NeonDB and Supabase schemas in sync.
  • Generates, applies, and validates migrations with DrizzleKit.
  • Includes rollback guidance and contract/API compatibility checks.

Quick Start

Use the db-migrate skill to generate and apply a migration that aligns NeonDB and Supabase schemas.

Frequently Asked Questions about db-migrate

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

FAQPage Schema
How do I keep Drizzle ORM schemas in sync across NeonDB and Supabase?

To synchronize Drizzle ORM schemas across NeonDB and Supabase, apply coordinated migrations that update both databases simultaneously. This prevents schema drift and maintains dual-database consistency by validating type correctness and checking for conflicts before deployment.

What is the best way to generate DrizzleKit migrations for a dual-database setup?

The best way to generate DrizzleKit migrations for a dual-database setup is to update schema definitions in packages/db/src/schema and generate migrations that align both NeonDB and Supabase. This includes validating Zod contracts and API compatibility to ensure type correctness.

Does db-migrate support rollback guidance for NeonDB and Supabase migrations?

Yes, the dual-database migration process includes rollback guidance and contract or API compatibility checks. This ensures you can safely revert schema changes across NeonDB and Supabase if conflicts or issues arise during the migration workflow.

Can I use DrizzleKit to validate Zod contracts and API compatibility during migrations?

Yes, DrizzleKit migrations can validate Zod contracts and API compatibility. The migration workflow checks for conflicts across system schemas and runs tests to ensure type correctness is maintained between NeonDB and Supabase databases.

Why do my NeonDB and Supabase schemas experience drift during deployments?

NeonDB and Supabase schemas drift when migrations are applied independently without coordination. To prevent this, use a guided migration workflow that applies changes across both databases simultaneously, checking for conflicts and validating schema consistency.