2017 © Pedro Peláez
 

yii2-extension yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

image

bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  • Tuesday, May 27, 2014
  • by bariew
  • Repository
  • 5 Watchers
  • 9 Stars
  • 1,501 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 14 Versions
  • 3 % Grown

The README.md

Module migration Yii2 controller.

Runs module migrations from module 'migrations' folder. Use it if you want to keep your module migrations inside module 'migrations' folder., (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist bariew/yii2-module-migration-controller "*"

or add, (*4)

"bariew/yii2-module-migration-controller": "*"

to the require section of your composer.json file., (*5)

Usage

    Redefine migrate controller in your console config file:
    ...
    'controllerMap' => [
        'migrate'   => 'bariew\moduleMigration\ModuleMigrateController'
    ],
    ...

    Also define 'modules' app attribute here like in web app config file, e.g.:
    ...
    'modules'   => [
        'user'  => 'app\modules\user\Module',
        'page'  => [
            'class' => 'app\modules\base\modules\Module'
        ]
    ],
    migrations from your moduleFolder/migrations will be applied.

Since 1.3.0 there is also migrate/data-dump {tableName} action - for generating any table data migration into @app/migrations folder., (*6)

Since 1.2.0 you may use new commands:, (*7)

./yii migrate/module-up yourModuleName
./yii migrate/module-down yourModuleName

The Versions

27/05 2014

dev-master

9999999-dev https://github.com/bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  Sources   Download

BSD-3-Clause

by Bariev Pavel

yii2 migration

27/05 2014

1.0.0

1.0.0.0 https://github.com/bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  Sources   Download

BSD-3-Clause

by Bariev Pavel

yii2 migration module

27/05 2014

1.0.1

1.0.1.0 https://github.com/bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  Sources   Download

BSD-3-Clause

by Bariev Pavel

yii2 migration module

27/05 2014

1.1.0-alpha

1.1.0.0-alpha https://github.com/bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  Sources   Download

BSD-3-Clause

by Bariev Pavel

yii2 migration module

27/05 2014

1.1.0-beta

1.1.0.0-beta https://github.com/bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  Sources   Download

BSD-3-Clause

by Bariev Pavel

yii2 migration module

27/05 2014

1.2.0-beta

1.2.0.0-beta https://github.com/bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  Sources   Download

BSD-3-Clause

by Bariev Pavel

yii2 migration module

27/05 2014

1.2.0-beta.1

1.2.0.0-beta1 https://github.com/bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  Sources   Download

BSD-3-Clause

by Bariev Pavel

yii2 migration module

27/05 2014

1.3.0

1.3.0.0 https://github.com/bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  Sources   Download

BSD-3-Clause

by Bariev Pavel

yii2 migration

27/05 2014

1.3.0-beta

1.3.0.0-beta https://github.com/bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  Sources   Download

BSD-3-Clause

by Bariev Pavel

yii2 migration module

27/05 2014

1.3.0-beta.1

1.3.0.0-beta1 https://github.com/bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  Sources   Download

BSD-3-Clause

by Bariev Pavel

yii2 migration module

27/05 2014

1.3.0-beta.2

1.3.0.0-beta2 https://github.com/bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  Sources   Download

BSD-3-Clause

by Bariev Pavel

yii2 migration

27/05 2014

1.3.0-beta.3

1.3.0.0-beta3 https://github.com/bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  Sources   Download

BSD-3-Clause

by Bariev Pavel

yii2 migration

27/05 2014

1.3.0-beta.4

1.3.0.0-beta4 https://github.com/bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  Sources   Download

BSD-3-Clause

by Bariev Pavel

yii2 migration

27/05 2014

1.3.1

1.3.1.0 https://github.com/bariew/yii2-module-migration-controller

Runs module migrations from module 'migrations' folder

  Sources   Download

BSD-3-Clause

by Bariev Pavel

yii2 migration