dev-master
9999999-devReplacement MySQL Schema for Yii 2 with fixes
MIT
The Requires
by Nikola Kovacs
extension yii2
0.1.0
0.1.0.0Replacement MySQL Schema for Yii 2 with fixes
MIT
The Requires
by Nikola Kovacs
extension yii2
Replacement MySQL Schema for Yii 2 with fixes
Replacement MySQL Schema for Yii 2 with fixes., (*1)
Currently the only change is that Schema::TYPE_TEXT
defaults to 'mediumtext'. This can be changed by
setting the defaultTextType
property of the Schema., (*2)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require --prefer-dist nkovacs/yii2-mysql "*"
or add, (*5)
"nkovacs/yii2-mysql": "*"
to the require section of your composer.json
file., (*6)
Once the extension is installed, add the following to your configuration file to overwrite the default mysql schema :, (*7)
Yii::$container->set('yii\db\mysql\Schema', 'nkovacs\mysql\Schema');
To change options :, (*8)
Yii::$container->set('yii\db\mysql\Schema', [ 'class' => 'nkovacs\mysql\Schema', 'defaultTextType' => 'longtext', ]);
Replacement MySQL Schema for Yii 2 with fixes
MIT
extension yii2
Replacement MySQL Schema for Yii 2 with fixes
MIT
extension yii2