Migration to be used from web interface. Useful when you have no shell access.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist shaqman/yii2-web-migration
or add
"shaqman/yii2-web-migration": "*"
Configure yii2-web-migration
module.
'modules' => [
'web-migration' => [
// the module class
'class' => 'shaqman\web\migration\Module',
],
// your other modules
]
Create your migrations as usual, and you can apply the migrations by triggering your module name.
http://localhost/index.php?r=web-migration/default&action=up
http://localhost/index.php?r=web-migration/default&action=down