PHP code example of webvimark / module-migrations

1. Go to this page and download the library: Download webvimark/module-migrations library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

webvimark / module-migrations example snippets


	'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',
		],

		...
	],

	...

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

	...

php composer.phar