تخطَّ إلى المحتوى
أمرمستورد

create-database-migrations

Create and manage database migrations with proper versioning and rollback support

وصف مستورد لم يراجعه محرر بعد

جاء هذا العنصر من مستودعه الأصلي وفحصناه آلياً فقط، ولم يكتب له محرر وصفاً عربياً بعد. اقرأ محتواه بنفسك قبل أن تعتمد عليه. ولا تُفهرس هذه الصفحة في محركات البحث حتى تُراجَع.

التنزيل

الملفات: 1 · الحجم: 2.6 ك.ب

نزّل ملف ZIP

يحمل الملف ترخيص المصدر الأصلي.

التثبيت

بعد التنزيل، شغّل الأمر في الطرفية. يسأل unzip قبل أن يستبدل أي ملف موجود.

  • لهذا المشروع

    يوضع في: .claude/commands/

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

  • لحسابك على الجهاز كله

    يوضع في: ~/.claude/commands/

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

التعليمات

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.

الملفات

  • LICENSE1 ك.ب
  • create-database-migrations.md1.6 ك.ب

ما وجده الفحص الآلي

فحصنا الملفات آلياً وقت الاستيراد. هذا ما نبّه إليه الفحص، ولا يعني أن العنصر ضار ولا أنه سليم: اقرأه بنفسك.

  • يحتاج مراجعةأدوات مسموحة بلا حدود

    في الملف cli-tool/components/commands/setup/create-database-migrations.md

التعليقات (0)

لا تعليقات بعد. كن أول من يعلّق.

سجّل الدخول لتعلّق. التعليق من المستوى 1 (عضو).

أبلغ

عناصر مشابهة

  • أمرمستورد

    code-migrate

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

    MITالملفات: 1

  • أمرمستورد

    deps-upgrade

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

    MITالملفات: 1

  • أمرمستورد

    design-database-schema

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

    MITالملفات: 1

  • أمرمستورد

    full-stack-feature

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

    MITالملفات: 1

  • أمرمستورد

    legacy-modernize

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

    MITالملفات: 1

  • أمرمستورد

    migration-assistant

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

    MITالملفات: 1