PHP code example of webtoucher / yii2-migrate

1. Go to this page and download the library: Download webtoucher/yii2-migrate 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/ */

    

webtoucher / yii2-migrate example snippets


return [
    ...
    'controllerMap' => [
        ...
        'migrate' => [
            'class' => 'webtoucher\migrate\controllers\MigrateController',
            // alias of modules directory
            // 'modulesPath' => '@app/modules',
            // additional aliases of migration directories
            // 'migrationLookup' => [],
        ],
        ...
    ],
    ...
];

$ php composer.phar 
bash
$ php yii migrate/create comment_for_migration
bash
$ php yii migrate