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).");
}else{
}
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).");
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).");
}else{
}
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).");
}
// try mark up
$migrations=$this->getNewMigrations();
// try mark up
foreach($migrationsas$i=>$migration){
$migrations=$this->getNewMigrations();
if(strpos($migration,$version.'_')===0){
foreach($migrationsas$i=>$migration){
if($this->confirm("Set migration history at $originalVersion?")){
if(strpos($migration,$version.'_')===0){
$command=$this->db->createCommand();
if($this->confirm("Set migration history at $originalVersion?")){
for($j=0;$j<=$i;++$j){
$command=$this->db->createCommand();
$command->insert($this->migrationTable,array(
for($j=0;$j<=$i;++$j){
'version'=>$migrations[$j],
$command->insert($this->migrationTable,array(
'apply_time'=>time(),
'version'=>$migrations[$j],
))->execute();
'apply_time'=>time(),
}
))->execute();
echo"The migration history is set at $originalVersion.\nNo actual migration was performed.\n";
}
}
echo"The migration history is set at $originalVersion.\nNo actual migration was performed.\n";