Finalise migration