mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-08 17:07:33 +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");
|
||||
|
||||
@ -112,7 +112,7 @@ EOD;
|
||||
if(($_path_=@getenv('YIIC_SHELL_COMMAND_PATH'))!==false)
|
||||
$_runner_->addCommands($_path_);
|
||||
$_commands_=$_runner_->commands;
|
||||
$log=Yii::app()->log;
|
||||
$log=\Yii::$application->log;
|
||||
|
||||
while(($_line_=$this->prompt("\n>>"))!==false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user