Helpful tools for yii2 migrations.
With this extenension you can:
{{%table_name}}
, extension will do it automatically.flexibuild\migrate\db\CreateTableMigration
.The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist flexibuild/migrate "*"
or add
"flexibuild/migrate": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by configuring your console application:
return [
...
'controllerMap' => [
...
'migrate' => [
'class' => 'flexibuild\migrate\controllers\MigrateController',
],
],
...
];
If you do not want to use migrate command from this extension you may be want simply to extend you migration class from one of:
flexibuild\migrate\db\Migration
flexibuild\migrate\db\CreateTableMigration
Comments