Before this function was in liib/util.php but it is no longer needed for regular program execution. Still the tests have to make sure that the migration status is set to "0" that's why I added the function here as a helper. The test was originally written by @FlorinPeter. If necessary I think he can say more about it.