create-database-migrations
Create and manage database migrations with proper versioning and rollback support
- 0
- Installs
- —
- Rating
- —
- Success rate
- 1
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 d9611be1ca0d7fdd… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
create-database-migrations.md
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 -lmigrations 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:
- Migration Planning - Analyze schema changes, dependencies, and data impact
- Migration Generation - Create timestamped migration files with up/down methods
- Schema Updates - Table creation, column modifications, index management
- Data Migrations - Safe data transformations and backfills
- Rollback Strategy - Implement reliable rollback procedures for each change
- 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
1- create-database-migrations.md
73c999c12e1.6 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from davila7/claude-code-templates8
Execute GitHub Actions locally using act
Implement secure user authentication system with chosen method and security best practices
Generate and maintain project changelog with Keep a Changelog format
Setup comprehensive mutation testing with framework selection and CI integration
Add and configure new package to workspace with proper structure and dependencies
Setup comprehensive application performance monitoring with metrics, alerting, and observability
Implement property-based testing with framework selection and invariant identification
Add entry to project changelog following Keep a Changelog format
Related database skillsscan passed
Plan and execute safe, incremental dependency upgrades with minimal risk — including breaking-change migration paths and proper test verification.
Guided migration creation for Cloudflare D1 with schema change validation, SQL generation, and testing workflow. Use when user wants to create migration, modify schema, add tables/indexes, or change database structure.