The upgrade workflow