{"enrichment":{"faq":[{"a":"database-migration-patterns teaches safe schema evolution through versioned, reversible migrations. The skill covers zero-downtime techniques including multi-phase operations for renames and removals, concurrent index creation, and strategies that prevent table locks. You'll learn to structure changes so applications continue running while schemas evolve, using Alembic's upgrade/downgrade capabilities to maintain control over each transition.","q":"How to safely migrate database schema without downtime?"},{"a":"database-migration-patterns covers Alembic setup from initialization through env.py configuration. You'll learn to initialize Alembic in your project, configure database connectivity, set up version control for migrations, and customize the migration environment. The skill includes best practices for organizing migration files, managing multiple database targets, and configuring Alembic to work safely in production pipelines.","q":"What is Alembic migration setup and configuration?"},{"a":"database-migration-patterns emphasizes testing both directions of every migration before production. The skill teaches frameworks and strategies for validating upgrade paths, ensuring downgrades restore previous state, and catching data loss or corruption early. You'll learn to automate migration testing, verify schema integrity after transitions, and build confidence that rollbacks will succeed if needed.","q":"How do you test migration upgrade and downgrade paths?"},{"a":"database-migration-patterns covers multi-phase column rename patterns that eliminate downtime. The approach involves creating a new column, backfilling data, updating application code to use both columns, then dropping the old column in a later phase. This skill teaches how to coordinate these phases, handle concurrent writes, and validate data integrity throughout the rename process.","q":"How can you safely rename a column in production?"},{"a":"database-migration-patterns teaches data migration strategies that run safely during schema evolution. You'll learn to backfill new columns with computed or transformed values, handle large tables in batches to avoid locks, and validate data consistency after transformations. The skill covers techniques for concurrent data changes and ensures backfills don't block application traffic.","q":"What strategies exist for backfilling and transforming data?"},{"a":"database-migration-patterns addresses lock prevention through techniques like concurrent index creation, non-blocking column additions, and multi-phase operations. The skill teaches database-specific approaches (PostgreSQL, MySQL) for avoiding exclusive locks, batching large changes, and structuring migrations so applications remain responsive. You'll learn to monitor lock contention and adjust strategies for your database platform.","q":"How do you prevent table locks during schema changes?"}],"shadow_tags":["schema-evolution","reversible-changes","production-safety","version-control-db","downtime-prevention","data-integrity","migration-automation","rollback-strategy"],"summary_rewrite":"Master versioned, reversible database migrations that evolve schemas without downtime. Learn Alembic setup, multi-phase column operations, data backfills, and testing strategies to keep applications running during schema changes."},"files":[{"bytes":6356,"path":"skills/development/database-migration-patterns/SKILL.md","sha256":"5083a2eb44f12b5d9175408745ffccab77639fb5f55d50c0f59478e72e5172a3","url":"https://skillfed.io/files/organvm/a-i--skills/database-migration-patterns/cbc16b54/SKILL.md"}],"id":"organvm/a-i--skills/database-migration-patterns","links":{"html":"https://skillfed.io/organvm/a-i--skills/database-migration-patterns","md":"https://skillfed.io/organvm/a-i--skills/database-migration-patterns.md","repo":"https://github.com/organvm/a-i--skills"},"meta":{"agents_supported":["claude-code","codex","gemini"],"first_seen":"2026-07-28","forks":6,"language":"Python","last_updated":"2026-07-22","license":"Apache-2.0","name":"database-migration-patterns","publisher":"organvm","stars":14},"relations":{"similar":[{"id":"mindmorass/reflex/database-migration-patterns"},{"id":"majesticlabs-dev/majestic-marketplace/alembic-patterns"},{"id":"manutej/luxor-claude-marketplace/alembic"},{"id":"CuriousLearner/devkit/migration-generator"},{"id":"bilalmk/todo_correct/sqlmodel-expert"},{"id":"yonatangross/orchestkit/database-patterns"},{"id":"softspark/ai-toolkit/migration-patterns"},{"id":"laolaoshiren/claude-code-skills-zh/db-migrator"},{"id":"manutej/luxor-claude-marketplace/sqlalchemy"},{"id":"bobmatnyc/claude-mpm-skills/sqlalchemy"}]},"slug":{"owner":"organvm","repo":"a-i--skills","skill":"database-migration-patterns"},"version":"cbc16b54"}
