webvimark/module-migrations

There is no license information available for the latest version (1.0.0) of this package.

Gui migrations for yii 2 gridview

1.0.0 2015-08-11 06:08 UTC

This package is auto-updated.

Last update: 2024-04-29 03:23:50 UTC


README

Provide:

  • modules support
  • fix original migrations permission issue
  • GUI interface

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist webvimark/module-migrations "*"

or add

"webvimark/module-migrations": "*"

to the require section of your composer.json file.

Configuration

In your config/web.php

	'modules'=>[
		...

		'migrations'=>[
			'class'=>'webvimark\modules\migrations\MigrationModule',
			'executableYii' => (YII_ENV == 'prod') ? '@app/yii_production' : '@app/yii',
			// 'layout'=>'//back',

			// If you want to be able to run migrations from specific url:
			// http://site.com/migrations/web-execute/index?key=THIS_KEY

			// 'webExecuteEnabled'=>true,
			// 'webExecuteKey'=>'bla-bla-key',
		],

		...
	],

In you config/console.php

	...

	'controllerMap'=>[
		'migrate'=>[
			'class'=>'webvimark\modules\migrations\components\MigrateController',
		],
	],

	...

Include your desired modules in config/console.php

Usage

Go to http://site.com/migrations/default/index