2017 © Pedro Peláez
 

yii2-extension yii2-mysql

Replacement MySQL Schema for Yii 2 with fixes

image

nkovacs/yii2-mysql

Replacement MySQL Schema for Yii 2 with fixes

  • Tuesday, June 30, 2015
  • by nkovacs
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3,283 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

MySQL Schema extension

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)

Installation

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)

Usage

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',
]);

The Versions

30/06 2015

dev-master

9999999-dev

Replacement MySQL Schema for Yii 2 with fixes

  Sources   Download

MIT

The Requires

 

by Nikola Kovacs

extension yii2

30/06 2015

0.1.0

0.1.0.0

Replacement MySQL Schema for Yii 2 with fixes

  Sources   Download

MIT

The Requires

 

by Nikola Kovacs

extension yii2