2017 © Pedro Peláez
 

yii2-extension yii2-migrate-command

Console Migration Command with multiple paths/aliases support

image

dmstr/yii2-migrate-command

Console Migration Command with multiple paths/aliases support

  • Wednesday, September 6, 2017
  • by schmunk
  • Repository
  • 6 Watchers
  • 38 Stars
  • 78,803 Installations
  • PHP
  • 15 Dependents
  • 0 Suggesters
  • 16 Forks
  • 2 Open issues
  • 9 Versions
  • 6 % Grown

The README.md

Extended Migration Command

DEPRECATION NOTICE - since Yii 2.0.12 this extension is obsolete, its functionality is now supported by the framework core. For details see also issue., (*1)


Latest Stable Version Total Downloads License, (*2)

Console Migration Command with multiple paths/aliases support, (*3)

This extension was created from this Pull Request on GitHub, which became unmergeable. Until this feature will be reimplemented into the core, you can use this extension if you need to handle multiple migration paths., (*4)

Note! If using dmstr/yii2-migrate-command in an existing project, you may have to remove your migration table, due to a schema change., (*5)

Installation

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

composer require dmstr/yii2-migrate-command

Usage

Configure the command in your main application configuration:, (*7)

'controllerMap'       => [
    'migrate' => [
        'class' => 'dmstr\console\controllers\MigrateController'
    ],
],

Once the extension is installed and configured, simply use it on your command line, (*8)

./yii migrate

Adding migrations via application configuration

Add additional migration paths via application params:, (*9)

"yii.migrations"=> [
    "@dektrium/user/migrations",
],

Adding migrations via extension bootstrap()

You can also add migrations in your module bootstrap process:, (*10)

public function bootstrap($app)
{
    $app->params['yii.migrations'][] = '@vendorname/packagename/migrations';
}

Adding migrations via command parameter

If you want to specify an additional path directly with the command, use, (*11)

./yii migrate --migrationLookup=@somewhere/migrations/data1,@somewhere/migrations/data2

Note! Please make sure to not use spaces in the comma separated list., (*12)


Built by dmstr, Stuttgart, (*13)

The Versions

06/09 2017

dev-master

9999999-dev

Console Migration Command with multiple paths/aliases support

  Sources   Download

BSD-3-Clause

The Requires

 

extension command yii2 console migration

18/04 2017

0.4.0-beta2

0.4.0.0-beta2

Console Migration Command with multiple paths/aliases support

  Sources   Download

BSD-3-Clause

The Requires

 

extension command yii2 console migration

22/02 2017

0.4.0-beta1

0.4.0.0-beta1

Console Migration Command with multiple paths/aliases support

  Sources   Download

BSD-3-Clause

The Requires

 

extension command yii2 console migration

09/01 2017

0.3.2

0.3.2.0

Console Migration Command with multiple paths/aliases support

  Sources   Download

BSD-3-Clause

The Requires

 

extension command yii2 console migration

19/01 2016

0.3.1

0.3.1.0

Console Migration Command with multiple paths/aliases support

  Sources   Download

BSD-3-Clause

extension command yii2 console migration

18/12 2015

dev-develop

dev-develop

Console Migration Command with multiple paths/aliases support

  Sources   Download

BSD-3-Clause

The Requires

 

extension command yii2 console migration

17/12 2015

0.3.0

0.3.0.0

Console Migration Command with multiple paths/aliases support

  Sources   Download

BSD-3-Clause

extension command yii2 console migration

26/02 2015

0.2.0

0.2.0.0

Console Migration Command with multiple paths/aliases support

  Sources   Download

BSD-3-Clause

extension command yii2 console migration

19/11 2014

0.1.0

0.1.0.0

Console Migration Command with multiple paths/aliases support

  Sources   Download

BSD-3-Clause

extension command yii2 console migration