f076269c32
Migration was failing on DBs where referral_earnings or advertising_campaign_registrations tables didn't exist yet, causing campaign_id column to never be added. Added _has_table and _has_column guards, wrapped backfill in existence check.