sql-migrations

Manage and version database schema migrations across Prisma, Drizzle, and raw SQL.

3|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/1Mangesh1/dev-skills-collection --skill sql-migrations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-migrations
Source: https://github.com/1Mangesh1/dev-skills-collection/tree/main/skills/sql-migrations
Command: npx skills add https://github.com/1Mangesh1/dev-skills-collection --skill sql-migrations

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Managing and versioning database schema changes across Prisma, Drizzle, and raw SQL can become error-prone and hard to reproduce across environments. This Skill provides a cohesive workflow to define, apply, and rollback migrations in a deterministic manner.

Core Features & Use Cases

  • Prisma migrations: create, apply, seed, and rollback migrations for PostgreSQL, MySQL, and SQLite.
  • Drizzle migrations: define and run schema changes with a modern, lightweight approach.
  • Raw SQL migrations: craft and execute SQL scripts with explicit up/down patterns.
  • Safe deployment: maintain a clear history of changes, ensure repeatable deployments, and support seeding.

Quick Start

Define a change in your schema and run the corresponding migration command to apply it.

Frequently Asked Questions about sql-migrations

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

FAQPage Schema
How do I manage database schema migrations across Prisma, Drizzle, and raw SQL?

Database schema migrations across Prisma, Drizzle, and raw SQL are managed by applying deterministic workflows that define, apply, and rollback changes to ensure repeatable deployments across development, staging, and production environments.

What is the best way to rollback a database migration in Prisma?

Rolling back a database migration in Prisma requires using established up/down patterns to safely revert schema changes. This maintains a clear history of changes and supports safe deployment across PostgreSQL, MySQL, and SQLite environments.

How do I run Drizzle migrations to apply schema changes?

Running Drizzle migrations involves defining your schema changes and executing standard migration commands to apply them. This lightweight approach ensures deterministic and repeatable schema deployments across different environments.

Can I use raw SQL scripts for database migrations with explicit up and down patterns?

Yes, raw SQL scripts support database migrations through explicit up/down patterns. You can craft and execute SQL scripts directly to apply and revert schema changes deterministically without relying on an ORM.

Does this database migration workflow support seeding across staging and production environments?

Yes, the database migration workflow supports seeding across staging and production environments. It maintains a clear history of changes and provides standard commands to ensure deterministic, repeatable data seeding.

Why do I need deterministic migration commands for database schema versioning?

Deterministic migration commands are needed for database schema versioning to prevent error-prone manual updates. They ensure that schema changes are applied consistently and can be safely rolled back across development, staging, and production.