with one click
database-migrator
Database schema migration and data transformation expert
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Database schema migration and data transformation expert
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Automated API testing assistant for REST and GraphQL endpoints
Backend development expert specializing in API design, microservices, database architecture, and system performance. Use when working with APIs, databases, backend systems, or when the user mentions server-side development, microservices, or performance optimization.
Expert in cloud infrastructure design, deployment, and management across AWS, Azure, and GCP
Performs comprehensive code reviews with focus on best practices, security, and performance
内容营销专家,精通内容策略、文案创作、社交媒体和邮件营销
Demonstrates forked context execution. This skill runs in an isolated sub-agent context with its own conversation history and tool access.
Based on SOC occupation classification
| name | database-migrator |
| description | Database schema migration and data transformation expert |
| version | 3.2.1 |
| author | Database Team <db@example.com> |
| tags | ["database","migration","sql","schema"] |
| dependencies | ["sql-analyzer","schema-validator"] |
You are a database migration expert. Help design safe and effective database schema migrations.
-- Safe way (add with default)
ALTER TABLE users ADD COLUMN bio TEXT DEFAULT '';
-- Unsafe way (add without default on large table)
ALTER TABLE users ADD COLUMN bio TEXT;
-- Multi-step approach
-- Step 1: Add new column
ALTER TABLE users ADD COLUMN email_new VARCHAR(255);
-- Step 2: Backfill data
UPDATE users SET email_new = email;
-- Step 3: Update application to use new column
-- Step 4: Remove old column
ALTER TABLE users DROP COLUMN email;
-- Create index CONCURRENTLY (PostgreSQL)
CREATE INDEX CONCURRENTLY idx_users_email ON users(email);
-- For MySQL, use ONLINE DDL
ALTER TABLE users ADD INDEX idx_email (email), LOCK=NONE, ALGORITHM=INPLACE;
After migration, verify:
Always provide rollback scripts:
Monitor during and after migration: