2017 © Pedro Peláez
 

yii2-extension yii2-migrate

Yii2 migrate command that scan new migrations in modules

image

webvimark/yii2-migrate

Yii2 migrate command that scan new migrations in modules

  • Tuesday, September 13, 2016
  • by webvimark
  • Repository
  • 3 Watchers
  • 4 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 18 % Grown

The README.md

Migrate controller for Yii 2

Automatically scan for new migrations in all available modules., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

composer require webvimark/yii2-migrate

or add, (*4)

"webvimark/yii2-migrate": "^1.0"

Usage

To use this extension, simply add the following code in your application configuration (console.php):, (*5)

'controllerMap' => [
    'migrate' => [
        'class' => 'webvimark\migrate\Controller',
        'configs' => [
            'config/console.php',
            'config/web.php',
        ],
//        'additionalPaths' => [
//            'some-path/some-dir', //directory
//            '@yii/rbac/migrations', // directory with alias
//            '@yii/web/migrations/m160313_153426_session_init.php', // single file
//        ],
    ],
],
# Run as usual
php yii migrate

Available options

configs - array. Application configuration files with 'modules' section, (*6)

onlyModules - array. Scan for new migrations only in modules listed here, (*7)

exceptModules - array. Do not scan for new migrations in modules listed here, (*8)

additionalPaths - array. You can specify additional paths, (*9)

The Versions

13/09 2016

dev-master

9999999-dev

Yii2 migrate command that scan new migrations in modules

  Sources   Download

MIT

The Requires

 

by Vimark

yii2 migration modules

13/09 2016

1.0.3

1.0.3.0

Yii2 migrate command that scan new migrations in modules

  Sources   Download

MIT

The Requires

 

by Vimark

yii2 migration modules

13/09 2016

1.0.2

1.0.2.0

Yii2 migrate command that scan new migrations in modules

  Sources   Download

MIT

The Requires

 

by Vimark

yii2 migration modules

12/09 2016

1.0.1

1.0.1.0

Yii2 migrate command that scan new migrations in modules

  Sources   Download

MIT

The Requires

 

by Vimark

yii2 migration modules

12/09 2016

1.0.0

1.0.0.0

Yii2 migrate command that scan new migrations in modules

  Sources   Download

MIT

The Requires

 

by Vimark

yii2 migration modules