我在yii2中使用sqlsrv连接并且gii工作正确!
这是我的联系:
return [
'class' => 'yii\db\Connection',
'dsn' => 'sqlsrv:Server=DESKTOP-UCQ1M4B;Database=shopping;ConnectionPooling=0',
'username' => '',
'password' => '',
'charset' => 'utf8'
];
但是当我想在我的Yii2项目中安装扩展时,扩展没有错误,但数据库没有更新,例如: 我用这一行在项目中添加了这个扩展:
composer require "dektrium/yii2-user:0.9.*@dev"
这是作曲家的回归:
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing yiisoft/yii2-httpclient (2.0.2)
Loading from cache
- Installing yiisoft/yii2-authclient (2.1.1)
Loading from cache
- Installing dektrium/yii2-user (dev-master a908ab3)
Cloning a908ab3652668c6f2755052098dac09a8c6de6f4 from cache
Writing lock file
Generating autoload files
但数据库未更新!!!
在安装后的mysql连接中这个扩展数据库已经更新了create 3用户配置文件表格结构!