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).");
}
// try mark up
$migrations=$this->getNewMigrations();
foreach($migrationsas$i=>$migration){
if(strpos($migration,$version.'_')===0){
if($this->confirm("Set migration history at $originalVersion?")){
$command=$this->db->createCommand();
for($j=0;$j<=$i;++$j){
$command->insert($this->migrationTable,array(
'version'=>$migrations[$j],
'apply_time'=>time(),
))->execute();
}
echo"The migration history is set at $originalVersion.\nNo actual migration was performed.\n";
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).");
}
// try mark up
$migrations=$this->getNewMigrations();
foreach($migrationsas$i=>$migration){
if(strpos($migration,$version.'_')===0){
if($this->confirm("Set migration history at $originalVersion?")){
$command=$this->db->createCommand();
for($j=0;$j<=$i;++$j){
$command->insert($this->migrationTable,array(
'version'=>$migrations[$j],
'apply_time'=>time(),
))->execute();
}
echo"The migration history is set at $originalVersion.\nNo actual migration was performed.\n";
'memo'=>'PHP Intl extension 1.0.2 or higher is required when you want to use <abbr title="Internationalized domain names">IDN</abbr>-feature of EmailValidator or UrlValidator or the <code>yii\i18n\Formatter</code> class.'