You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried code from getDbTargets() function, which throws the exception, and it works fine outside of the console and returns the DbTarget object as expected. Somehow this exception is only thrown in console.
Yii Migration Tool (based on Yii v2.0.1-dev)
Exception 'yii\base\InvalidConfigException' with message 'You should configure "log" component to use one or more database targets before executing this migration.'
Stack trace:
#0 /var/www/project/vendor/yiisoft/yii2/log/migrations/m141106_185632_log_init.php(54): m141106_185632_log_init->getDbTargets()
#1 /var/www/project/vendor/yiisoft/yii2/console/controllers/BaseMigrateController.php(489): m141106_185632_log_init->up()
#2 /var/www/project/vendor/yiisoft/yii2/console/controllers/BaseMigrateController.php(126): yii\console\controllers\BaseMigrateController->migrateUp('m141106_185632_...')
#3 [internal function]: yii\console\controllers\BaseMigrateController->actionUp(0)
#4 /var/www/project/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array)
#5 /var/www/project/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\InlineAction->runWithParams(Array)
#6 /var/www/project/vendor/yiisoft/yii2/console/Controller.php(91): yii\base\Controller->runAction('', Array)
#7 /var/www/project/vendor/yiisoft/yii2/base/Module.php(455): yii\console\Controller->runAction('', Array)
#8 /var/www/project/vendor/yiisoft/yii2/console/Application.php(161): yii\base\Module->runAction('migrate', Array)
#9 /var/www/project/vendor/yiisoft/yii2/console/Application.php(137): yii\console\Application->runAction('migrate', Array)
#10 /var/www/project/vendor/yiisoft/yii2/base/Application.php(375): yii\console\Application->handleRequest(Object(yii\console\Request))
#11 /var/www/project/yii(23): yii\base\Application->run()
#12 {main}
It's on ubuntu 14.04. @samdark any thoughts on why this is happening
The text was updated successfully, but these errors were encountered:
When I try to apply the
log/migrations/m141106_185632_log_init.php
it throws an exception as if there is no DbTarget configured.
I have it configured in components log config:
I've tried code from
getDbTargets()
function, which throws the exception, and it works fine outside of the console and returns the DbTarget object as expected. Somehow this exception is only thrown in console.It's on ubuntu 14.04.
@samdark any thoughts on why this is happening
The text was updated successfully, but these errors were encountered: