Fix upgrade script to run all the missing deltas.