thrownewException("The version argument must be either a timestamp (e.g. 101129_185401)\nor the full name of a migration (e.g. m101129_185401_create_user_table).");
echo"Already at '$originalVersion'. Nothing needs to be done.\n";
$this->migrateToVersion('m'.$matches[1]);
}elseif((string)(int)$version==$version){
$this->migrateToTime($version);
}elseif(($time=strtotime($version))!==false){
$this->migrateToTime($time);
}else{
$this->actionDown($i);
}
return;
thrownewException("The version argument must be either a timestamp (e.g. 101129_185401),\n the full name of a migration (e.g. m101129_185401_create_user_table),\n a UNIX timestamp (e.g. 1392853000), or a datetime string parseable\nby the strtotime() function (e.g. 2014-02-15 13:00:50).");
}
}
thrownewException("Unable to find the version '$originalVersion'.");
}
/**
* Modifies the migration history to the specified version.
*
...
...
@@ -568,6 +555,58 @@ class MigrateController extends Controller
}
/**
* Migrates to the specified apply time in the past.