mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-20 23:16:52 +01:00
(Fixes issue 1868)
This commit is contained in:
@@ -126,7 +126,6 @@ abstract class CDbMigration extends CComponent
|
||||
$this->_db=Yii::app()->getComponent('db');
|
||||
if(!$this->_db instanceof CDbConnection)
|
||||
throw new CException(Yii::t('yii', 'The "db" application component must be configured to be a CDbConnection object.'));
|
||||
$this->_db->setActive(true);
|
||||
}
|
||||
return $this->_db;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user