c006/yii2-console An alternative to yii migrate

extensionconsolemigrate

Yii2 Console

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.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



v2.1 is the latest of 4 releases



MIT license
Stats
0 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
34 total downloads