db-migrations

Automate Drizzle database migration generation and schema synchronization.

Updated Jul 8, 2026
One-click install
npx skills add https://github.com/alceupassos/hub --skill db-migrations-alceupassos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-migrations
Source: https://github.com/alceupassos/hub/tree/main/.agents/skills/db-migrations
Command: npx skills add https://github.com/alceupassos/hub --skill db-migrations-alceupassos

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires drizzle, bun, drizzle-kit, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of database migrations for Drizzle, ensuring schema changes, migration generation, and conflict resolution are handled efficiently.

Core Features & Use Cases

  • Schema Changes Management: Handle schema changes during feature development with tools for regeneration and review.
  • Migration Generation: Generate or regenerate migrations automatically to align with current schema.
  • Custom Migrations: Support custom SQL migration files for non-schema changes like enabling PostgreSQL extensions.
  • Use Case: When working on a feature that requires schema changes, use this Skill to automate the migration generation process, ensuring changes are tracked and reversible.

Quick Start

Generate a new migration for your Drizzle database using the 'db:generate' command.

Frequently Asked Questions about db-migrations

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

FAQPage Schema
How do I generate database migrations with Drizzle automatically?

To generate database migrations with Drizzle automatically, use the db:generate command to align migration files with your current schema. This ensures schema changes are tracked and reversible during feature development.

Can I write custom SQL migration files for non-schema changes in Drizzle?

Yes, you can write custom SQL migration files for non-schema changes in Drizzle to handle operations like enabling PostgreSQL extensions. This supports custom migrations alongside automated generation.

Do I need bun and drizzle-kit to manage database schema changes?

Yes, you need bun and drizzle-kit to manage database schema changes effectively. These dependencies are required for migration generation, schema synchronization, and conflict resolution within the workflow.

What is the best way to handle schema conflicts during Drizzle database migrations?

The best way to handle schema conflicts during Drizzle database migrations is using automated conflict resolution tools. This streamlines schema synchronization and ensures changes are tracked properly without manual intervention.

Why should I review generated migration files before applying schema changes?

Reviewing generated migration files before applying schema changes ensures database integrity and confirms the alterations match your intended schema. This review process is built into the migration generation workflow.