报错信息:Exception 'yii\base\InvalidConfigException' with message 'You should configure "authManager" component to use database before executing this migration.'
解决:
基础修改把
authManager写到config/console.php
'authManager' => [
'class' => 'yii\rbac\DbManager',//'yii\rbac\PhpManager',
],
高级
authManager写到console/config/main.php