PHP code example of uzproger / yii2-migrator

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

    

uzproger / yii2-migrator example snippets


  ...
  'controllerMap' => [
    'migrate' => [
      'class' => 'uzproger\migrator\MigrateController',
      'additionalPaths' => [
        [
          'name' => 'First Migration Path Name',
          'path' => 'First Migration Full Path',
        ],
        [
          'name' => 'Second Migration Path Name',
          'path' => 'Second Migration Full Path',
        ],
        ...
      ],
    ],
    ...
  ],