shaqman / yii2-web-migration
Migration to be used from web interface. Useful when you have no shell access.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.13
This package is auto-updated.
Last update: 2024-11-05 18:54:49 UTC
README
Migration to be used from web interface. Useful when you have no shell access.
Installation
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": "*"
Usage
Module Configuration
Configure yii2-web-migration
module.
'modules' => [ 'web-migration' => [ // the module class 'class' => 'shaqman\web\migration\Module', ], // your other modules ]
Migrate
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