tmukherjee13/yii2-reverse-migration
最新稳定版本:2.4.0
Composer 安装命令:
composer require tmukherjee13/yii2-reverse-migration
包简介
Generate working migration classes from existing Database
关键字:
README 文档
README
Generate working migration classes from existing Database
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist tmukherjee13/yii2-reverse-migration "*"
or add
"tmukherjee13/yii2-reverse-migration": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, Add the following in console.php:
return [ ... 'components' => [ ... ], 'controllerMap' => [ 'migration' => [ 'class' => 'tmukherjee13\migration\console\controllers\MigrationController', 'templateFile' => '@tmukherjee13/migration/views/template.php', ], ], ... ];
then you can use the migration command as follows:
for table migration,
yii migration/table <tablename>
or
yii migration/table <tablename1>,<tablename2>
for data migration,
yii migration/data <tablename>
or
yii migration/data <tablename1>,<tablename2>
to create migration of whole schema,
yii migration/schema <schemaname>
yii2-reverse-migration
统计信息
- 总下载量: 20.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-01-23