Data migration
Skill Microck/ordinary-claude-skills/skills_all/data-migration
Plan and execute database migrations, data transformations, and system migrations safely with rollback strategies and data integrity validation. Use when migrating databases, transforming data schemas, moving between database systems, implementing versioned migrations, handling data transformations, ensuring data integrity, or planning zero-downtime migrations.From its SKILL.md
npx -y skills add Microck/ordinary-claude-skills --skill data-migrationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.7 KB, 303 tokens by cl100k_base, as published. Nobody here has run it
Data Migration - Safe Schema Changes
When to use this skill
- Migrating database schemas and structures
- Transforming data between formats
- Moving data between database systems
- Implementing versioned database migrations
- Handling data transformations during migrations
- Ensuring data integrity and validation
- Planning zero-downtime migrations
- Rolling back failed migrations safely
- Migrating from legacy systems
- Implementing data backfill strategies
- Testing migrations in staging environments
- Creating migration rollback procedures
When to use this skill
- Migrating data between schemas, zero-downtime deployments.
- When working on related tasks or features
- During development that requires this expertise
Use when: Migrating data between schemas, zero-downtime deployments.
Process
- Add new column
- Dual-write to old & new
- Backfill historical data
- Switch reads to new column
- Remove old column
Example
```sql -- Step 1: Add column ALTER TABLE users ADD COLUMN email_new VARCHAR(255);
-- Step 2: Backfill UPDATE users SET email_new = email WHERE email_new IS NULL;
-- Step 3: Swap ALTER TABLE users DROP COLUMN email; ALTER TABLE users RENAME COLUMN email_new TO email; ```
Resources
What ships with it: 1 file
867 B alongside SKILL.md
- metadata.json867 B