mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-07 08:36:55 +01:00
(Fixes issue 1868)
This commit is contained in:
@@ -413,10 +413,7 @@ class MigrateCommand extends CConsoleCommand
|
||||
if($this->_db!==null)
|
||||
return $this->_db;
|
||||
else if(($this->_db=Yii::app()->getComponent($this->connectionID)) instanceof CDbConnection)
|
||||
{
|
||||
$this->_db->setActive(true);
|
||||
return $this->_db;
|
||||
}
|
||||
else
|
||||
die("Error: CMigrationCommand.connectionID '{$this->connectionID}' is invalid. Please make sure it refers to the ID of a CDbConnection application component.\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user