flexibuild/migrate Helpful tools for yii2 migrations


Yii2 migrate extension

Helpful tools for yii2 migrations.

With this extenension you can:

  • forget about wrapping table names like {{%table_name}}, extension will do it automatically.
  • create indexes and foreign keys without inventing them names.
  • create table without passing character set and collate. The extension will do it by default for MySQL databases.
  • simply create migrations that create tables with exntending from flexibuild\migrate\db\CreateTableMigration.
  • and other small features.


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


GitHub Stars
GitHub Forks



0.4.0 is the latest of 5 releases

MIT license
0 github stars & 0 github forks
0 downloads in the last day
2 downloads in the last 30 days
464 total downloads