PHP code example of wilwade / gii-migration

1. Go to this page and download the library: Download wilwade/gii-migration 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/ */

    

wilwade / gii-migration example snippets


//if your gii modules configuration looks like below:
    $config['modules']['gii'] = 'yii\gii\Module';
// Replace this line

//Add this into common/config/main-local.php
    $config['modules']['gii'] = [
		'class' => 'yii\gii\Module',
		'generators' => [
			'giiMigration' => [
				'class' => 'wilwade\giiMigration\generators\migration\Generator',
				//Optional:
				'defaultColumns' => [],
				'baseClass' => 'yii\db\Migration',
			],
		],
    ],