2017 © Pedro Peláez
 

yii2-extension yii2-multipath-migrations

Allow to apply migrations from multiple paths or aliases

image

cyberz/yii2-multipath-migrations

Allow to apply migrations from multiple paths or aliases

  • Tuesday, January 9, 2018
  • by cyberz
  • Repository
  • 0 Watchers
  • 2 Stars
  • 10,413 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

Yii2 Multiple Path Migration

Allow to apply migrations from multiple paths or aliases, (*1)

Installation

via Composer:, (*2)

php composer.phar require cyberz/yii2-multipath-migrations ">=1.0.0"

Usage

In your console application configuration add:, (*3)

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

The Versions

09/01 2018

dev-master

9999999-dev

Allow to apply migrations from multiple paths or aliases

  Sources   Download

MIT

The Requires

 

by Avatar cyberz

migrations extension yii2 aliases multiple path

24/09 2015

1.0.1

1.0.1.0

Allow to apply migrations from multiple paths or aliases

  Sources   Download

MIT

The Requires

 

by Avatar cyberz

migrations extension yii2 aliases multiple path

24/09 2015

1.0.0

1.0.0.0

Allow to apply migrations from multiple paths or aliases

  Sources   Download

MIT

The Requires

 

by Avatar cyberz

migrations extension yii2 aliases multiple path