database-migrations

Provide best practices for database schema changes and data migrations.

2|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/klu-dev/porting-ecc-to-vscode --skill database-migrations-klu-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migrations
Source: https://github.com/klu-dev/porting-ecc-to-vscode/tree/main/.github/skills/database-migrations
Command: npx skills add https://github.com/klu-dev/porting-ecc-to-vscode --skill database-migrations-klu-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides best practices for database migrations, ensuring safe and reversible schema changes, and zero-downtime deployments across various databases and ORMs.

Core Features & Use Cases

  • Schema Changes: Offers guidelines for adding, altering, or removing database tables and columns.
  • Data Migrations: Includes strategies for backfilling, transforming, and validating data during migrations.
  • Rollbacks: Ensures that rollbacks are possible with minimal downtime and data loss.
  • ORM Support: Covers best practices for Prisma, Drizzle, Kysely, Django, TypeORM, and golang-migrate.
  • Use Case: For a developer who needs to implement a zero-downtime deployment of a database schema change across multiple ORMs.

Quick Start

Use the database-migrations skill to review the best practices for adding a new column to a PostgreSQL table.

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 migrations?

Zero-downtime database migrations require strategies like forward-compatible rollbacks and phased schema changes to avoid locking tables. This approach provides guidelines for safe schema changes and data migrations across PostgreSQL and MySQL.

What is the best way to add a new column to a PostgreSQL table without downtime?

To add a new column to a PostgreSQL table without downtime, you should use backward-compatible schema changes and avoid locking operations. This Skill provides best practices for safely altering tables and rolling back changes if needed.

Does this database migration skill work with Prisma and Drizzle?

Yes, this database migration skill works with Prisma and Drizzle, as well as Kysely, Django, TypeORM, and golang-migrate. It covers best practices for schema changes and data migrations across these specific ORMs.

How do I handle data backfilling and validation during schema changes?

Handling data backfilling during schema changes involves strategies for transforming and validating data while the database is live. This Skill includes specific guidelines for executing data migrations safely alongside zero-downtime deployment strategies.

Can I ensure safe rollbacks when altering database tables?

Yes, you can ensure safe rollbacks when altering database tables by using forward-compatible deployment strategies. This Skill ensures that rollbacks are possible with minimal downtime and data loss across supported databases.