Update migrate.php

Now the migrations accept param for version and run all migrations