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";
}else{
}else{
$this->actionDown($i);
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).");
}
return;
}
}
}
}
thrownewException("Unable to find the version '$originalVersion'.");
}
/**
/**
* Modifies the migration history to the specified version.
* Modifies the migration history to the specified version.
*
*
...
@@ -568,6 +555,58 @@ class MigrateController extends Controller
...
@@ -568,6 +555,58 @@ class MigrateController extends Controller
}
}
/**
/**
* Migrates to the specified apply time in the past.