PHP code example of cyberz / yii2-multipath-migrations

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

    

cyberz / yii2-multipath-migrations example snippets


'controllerMap' => [
        'migrate' => [
            'class' => 'cyberz\migrations\controllers\MigrationsController',
            'migrationLookup' => [
                '@app',                         // will lookup in .../migrations/migration_name.php AND .../<some-dir-name>/migrations/migration_name.php
                '@backend',                     // will lookup in .../backend/<some-dir-name>/migrations/migration_name.php AND .../backend/modules/<some-dir-name>/migrations/migration_name.php 
                '@frontend/modules',            // will lookup in .../frontend/modules/<some-dir-name>/migrations/migration_name.php
                '@app/some/path/to/migrations', // will lookup in .../some/path/to/migrations/migration_name.php
                '@app/some/*/to/*/migrations',  // will lookup in .../some/<some-dir-name>/to/<some-dir-name>/migrations
            ],
        ],
    ],

php composer.phar