database-migrations

Guide PostgreSQL, MySQL, and ORM database schema migrations with rollback planning.

8|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/cyphercr0w/codeck --skill database-migrations-cyphercr0w
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migrations
Source: https://github.com/cyphercr0w/codeck/tree/main/apps/runtime/src/templates/presets/default/ecc/skills/database-migrations
Command: npx skills add https://github.com/cyphercr0w/codeck --skill database-migrations-cyphercr0w

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides best practices and tooling guidance for managing database schema changes and data migrations safely and efficiently in production environments.

Core Features & Use Cases

  • Schema Evolution: Safely add, alter, or remove tables and columns.
  • Data Migrations: Handle backfills and data transformations without downtime.
  • Zero-Downtime Deployments: Implement strategies for seamless production updates.
  • Tooling Integration: Covers popular ORMs and tools like Prisma, Drizzle, Django, and golang-migrate.
  • Use Case: You need to add a new is_active boolean column to your users table in PostgreSQL. This Skill will guide you through the safest way to do this, ensuring no table locks and providing a rollback strategy.

Quick Start

Use the database-migrations skill to learn how to safely add 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 schema migrations in PostgreSQL?

Zero-downtime PostgreSQL migrations require strategies like adding columns with defaults or using background backfills to avoid table locks. This approach ensures seamless production schema updates without disrupting active database traffic.

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

Adding a column to a large PostgreSQL table without locks involves using safe DDL operations and backfilling data in batches. This prevents long-running locks and maintains database availability during schema evolution.

Can I use Prisma and Drizzle for safe data transformations and data migrations?

Yes, Prisma and Drizzle support safe data migrations and schema changes. They provide tooling integration to handle backfills and data transformations, ensuring database schema evolution occurs safely without causing production downtime.

How do I plan a rollback strategy for database schema changes?

Planning a rollback strategy for database schema changes involves defining reverse DDL operations and testing them before production deployment. This allows you to revert schema updates safely if the migration causes unexpected errors.

Does this database migration guidance work with Django and golang-migrate?

Yes, this guidance covers integration with popular tools like Django and golang-migrate. It provides best practices for managing schema changes and data migrations across various ORM-specific tools and PostgreSQL environments.