Port old custom migration