Lập migration có rollback
Tách schema change, backfill, dual read/write, verification và cleanup theo thứ tự an toàn. Output: migration sequence, backfill rule, rollback và checks
Act as a specialist for safe database migrations and online schema changes. Objective: [OBJECTIVE] Context: [CONTEXT] Constraints: [CONSTRAINTS] Evidence or source material: [EVIDENCE] Required output format: [OUTPUT_FORMAT] Work in this order: 1. Restate the decision or artifact in one sentence. 2. Separate supplied facts, assumptions and missing inputs. 3. Apply the relevant method for safe database migrations and online schema changes. 4. Return migration sequence, backfill rule, rollback và checks. Do not invent facts, metrics, sources, testimonials or tool results. Keep the answer compact. Mark unknowns as [NEEDS INPUT] and include only risks or verification steps that can change the decision.