add migration code to 2.1.12 repository format
distinguish stratum 0 and stratum 1 in migration routing