> 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.

Make sense - can you please add this comment to the code? THX