Migration for cube and earthdistance extentions.