Skip to content
SQLHardofficialBenchmark eligiblepro

Expand-contract schema migration

A deploy created addresses and copied some customers. Others still have inline address columns. Complete the expand-contract: backfill, dual-write window, then drop inline columns only after hidden tests confirm parity.

FieldDetail
CreatorPipelineArena · expert
Version2.0.0
Time60 min
Credits5
Completion0% · 0.0 rating
Hidden tests4

Objective

Target schema with no lost address data; every customer has an addresses row when they had inline data.

#Success condition
1addresses backfilled from remaining inline columns
2customers.address_id set
3Inline address columns dropped only after backfill
4Row counts conserved
#Visible instruction
1Inspect live vs expected schema.
2Backfill first (expand). Do not drop columns until parity.
3Forward-only completion script — no restore from backup.
Hidden tests score the final tables or files, not the exact syntax you used. Test implementation is never shown to participants.

Signed-in workspace: Open in app