database-migrations

Generate safe migration plans for PostgreSQL schema changes.

1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/vrcms/everything-qwen-code --skill database-migrations-vrcms
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migrations
Source: https://github.com/vrcms/everything-qwen-code/tree/main/.qwen/skills/database-migrations
Command: npx skills add https://github.com/vrcms/everything-qwen-code --skill database-migrations-vrcms

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents production outages and data corruption caused by manual or poorly planned database schema changes, ensuring that migrations are reversible, safe, and scalable.

Core Features & Use Cases

  • Zero-Downtime Patterns: Implements expand-contract strategies to modify schemas without locking tables or interrupting service.
  • Multi-Tool Support: Provides standardized workflows for Prisma, Drizzle, Kysely, Django, and golang-migrate.
  • Safety Guardrails: Includes a comprehensive checklist for concurrent index creation, nullable column handling, and batch data migrations.

Quick Start

Use the database-migrations skill to generate a safe migration plan for adding a new non-nullable column to the users table in a PostgreSQL database.

Frequently Asked Questions about database-migrations

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

FAQPage Schema
How do I perform zero-downtime database schema migrations in PostgreSQL?

Zero-downtime database schema migrations use expand-contract strategies to modify schemas without locking tables or interrupting service. This approach enforces strict DDL and DML separation to ensure continuous system availability during PostgreSQL deployments.

What is the best way to add a non-nullable column without database downtime?

Adding a non-nullable column without downtime requires safe migration patterns that handle nullable column transitions progressively. Safety guardrails enforce concurrent operation best practices, preventing data corruption by applying batch data migrations and strict DDL/DML separation.

Does this zero-downtime migration approach work with Prisma, Drizzle, Kysely, and Django?

Yes, this zero-downtime migration approach works with Prisma, Drizzle, Kysely, Django, and golang-migrate. It provides standardized workflows and reversible migration patterns across these diverse ORM and migration tool ecosystems.

How do I ensure database migrations are reversible and safe for production?

Safe database migrations enforce reversible patterns and strict DDL/DML separation to prevent production outages. Safety guardrails include a comprehensive checklist for concurrent index creation and batch data migrations to maintain data integrity and system availability.

Why do database schema changes cause table locks and service interruptions?

Database schema changes cause table locks and service interruptions when poorly planned migrations block concurrent operations. Implementing expand-contract strategies and concurrent index creation best practices prevents these production outages and ensures continuous system availability.

When should I separate DDL and DML statements during database migrations?

You should separate DDL and DML statements during database migrations to enforce strict safety guardrails and prevent data corruption. This separation ensures batch data migrations and concurrent index creation execute without locking tables or interrupting service availability.