Skip to content

shaqman/yii2-web-migration

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shaqman/yii2-web-migration

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

About

Handle yii2 migrations on hosts without console access

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%