Skip to content
CommandImported

create-database-migrations

Create and manage database migrations with proper versioning and rollback support

Imported description, not reviewed yet

This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.

Download

Files: 1 · Size: 2.6 KB

Download the ZIP

The file carries the license of the original source.

Install

After downloading, run the command in a terminal. unzip asks before it replaces any file that is there.

  • For this project

    It goes in: .claude/commands/

    mkdir -p .claude/commands && unzip ~/Downloads/create-database-migrations.zip -d .claude/commands

  • For your account on the whole machine

    It goes in: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/create-database-migrations.zip -d ~/.claude/commands

Instructions

Create Database Migrations

Create and manage database migrations: $ARGUMENTS

Current Database State

  • ORM detection: @package.json or @requirements.txt (detect Sequelize, Prisma, Alembic, etc.)
  • Migration files: !find . -name "*migration*" -type f | head -5
  • Database config: @config/database.* or @prisma/schema.prisma
  • Current schema: !ls migrations/ 2>/dev/null | wc -l migrations found

Task

Create comprehensive database migrations with proper versioning and rollback capabilities:

Migration Types: Use $ARGUMENTS to specify table creation, column addition, table alteration, or data migration

Migration Framework:

  1. Migration Planning - Analyze schema changes, dependencies, and data impact
  2. Migration Generation - Create timestamped migration files with up/down methods
  3. Schema Updates - Table creation, column modifications, index management
  4. Data Migrations - Safe data transformations and backfills
  5. Rollback Strategy - Implement reliable rollback procedures for each change
  6. Testing - Validate migrations in development and staging environments

Best Practices: Follow database-specific conventions, maintain referential integrity, handle large datasets efficiently, and ensure zero-downtime deployments.

Output: Production-ready migration files with comprehensive rollback support, proper indexing, and data safety measures.

Files

  • LICENSE1 KB
  • create-database-migrations.md1.6 KB

What the automatic scan found

We scanned the files automatically when they were imported. This is what the scan pointed at. It does not mean the item is harmful, and it does not mean it is safe: read it yourself.

  • Needs a lookAllowed tools with no limits

    In file cli-tool/components/commands/setup/create-database-migrations.md

Comments (0)

No comments yet. Be the first.

Sign in to comment. Commenting comes at level 1 (Member).

Report

Similar items

  • CommandImported

    code-migrate

    Generate comprehensive migration plans and scripts for transitioning codebases between frameworks, languages, versions, or platforms with minimal disruption.

    MITFiles: 1

  • CommandImported

    deps-upgrade

    Plan and execute safe, incremental dependency upgrades with minimal risk — including breaking-change migration paths and proper test verification.

    MITFiles: 1

  • CommandImported

    design-database-schema

    Design optimized database schemas with proper relationships, constraints, and performance considerations

    MITFiles: 1

  • CommandImported

    full-stack-feature

    Orchestrate end-to-end full-stack feature development across backend, frontend, database, and infrastructure layers

    MITFiles: 1

  • CommandImported

    legacy-modernize

    Orchestrate legacy system modernization using the strangler fig pattern with gradual component replacement

    MITFiles: 1

  • CommandImported

    migration-assistant

    Comprehensive system migration assistance with planning, analysis, execution, and rollback capabilities

    MITFiles: 1