nkovacs/yii2-mysql
最新稳定版本:0.1.0
Composer 安装命令:
composer require nkovacs/yii2-mysql
包简介
Replacement MySQL Schema for Yii 2 with fixes
关键字:
README 文档
README
Replacement MySQL Schema for Yii 2 with fixes.
Currently the only change is that Schema::TYPE_TEXT defaults to 'mediumtext'. This can be changed by
setting the defaultTextType property of the Schema.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist nkovacs/yii2-mysql "*"
or add
"nkovacs/yii2-mysql": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, add the following to your configuration file to overwrite the default mysql schema :
Yii::$container->set('yii\db\mysql\Schema', 'nkovacs\mysql\Schema');
To change options :
Yii::$container->set('yii\db\mysql\Schema', [ 'class' => 'nkovacs\mysql\Schema', 'defaultTextType' => 'longtext', ]);
统计信息
- 总下载量: 6.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-30