An alternative to yii migrate
An alternative console to php yii migrate
, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-source "c006/yii2-console" "*"
or add, (*4)
"c006/yii2-console": "*"
to the require section of your composer.json
file., (*5)
console/config/main.php, (*6)
> 'modules' => [ 'migrate2' => [ 'class' => 'c006\console\Module', ], ],, (*7)
Easy to use!, (*8)
No path or history required, just the migration class name. Default action is "up", (*9)
> php yii migrate2 m_0000_0000_my_extension, (*10)
> php yii migrate2/down m_0000_0000_my_extension, (*11)
> php yii migrate2/custom m_0000_0000_my_extension, (*12)
Please provide any helpful feedback or requests., (*13)
Thanks., (*14)