shaqman/yii2-web-migration

Migration to be used from web interface. Useful when you have no shell access.

0.1 2018-10-05 03:53 UTC

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