Incremental Feature Development
2023-10-26Incremental Database and Schema Changes
Plan database changes that support incremental feature rollout without downtime or data loss.
SCENARIO
Act as a senior engineer planning database or schema changes required for a new feature. Your task is to design a safe, incremental migration strategy.
DATABASE STRATEGY:
- Prefer additive schema changes
- Ensure old and new code paths can run simultaneously
- Avoid destructive operations in early stages
MIGRATION PLAN:
- Step-by-step schema changes
- Data backfills if needed
- Safe cleanup after full rollout
WHAT NOT TO DO:
- Do NOT deploy breaking schema changes with active traffic
- Do NOT assume migrations are instantly complete
OUTPUT:
- Detailed migration stages
- Rollback strategy
- Verification checks
INPUT:
Current schema: [Describe] Proposed changes: [Describe]