flexibuild/migrate
最新稳定版本:0.4.0
Composer 安装命令:
composer require flexibuild/migrate
包简介
Helpful tools for yii2 migrations
README 文档
README
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.
Installation
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.
Usage
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\Migrationflexibuild\migrate\db\CreateTableMigration
统计信息
- 总下载量: 525
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-12