Migration was failing with bad data. Made it resilient and idempotent.