mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-13 12:49:04 +08:00
working on caching.
This commit is contained in:
@@ -416,7 +416,7 @@ class MigrateCommand extends CConsoleCommand
|
||||
{
|
||||
if($this->_db!==null)
|
||||
return $this->_db;
|
||||
else if(($this->_db=Yii::app()->getComponent($this->connectionID)) instanceof CDbConnection)
|
||||
else if(($this->_db=\Yii::$application->getComponent($this->connectionID)) instanceof CDbConnection)
|
||||
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