c006/yii2-console
最新稳定版本:v2.1
Composer 安装命令:
composer require c006/yii2-console
包简介
An alternative to yii migrate
README 文档
README
Overview
An alternative console to php yii migrate
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-source "c006/yii2-console" "*"
or add
"c006/yii2-console": "*"
to the require section of your composer.json file.
Required
console/config/main.php
'modules' => [
'migrate2' => [
'class' => 'c006\console\Module',
],
],
Usage
Easy to use!
No path or history required, just the migration class name. Default action is "up"
php yii migrate2 m_0000_0000_my_extension
php yii migrate2/down m_0000_0000_my_extension
php yii migrate2/custom m_0000_0000_my_extension
Notes
- Use after initial migrate
- Only works with vendors
Comments / Suggestions
Please provide any helpful feedback or requests.
Thanks.
统计信息
- 总下载量: 38
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-26