Melvin Upton Jr.'s second walk-off home run of the season capped a wild night, as the Padres and Dodgers staged a two-months-early version of the Home Run Derby at Petco Park.