2017 © Pedro Peláez
 

yii-extension yii2-migrate

Yii 2 extension for creating and running migrations

image

webtoucher/yii2-migrate

Yii 2 extension for creating and running migrations

  • Monday, August 25, 2014
  • by webtoucher
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3,104 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 3 Versions
  • 15 % Grown

The README.md

yii2-migrate

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

Installation

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

Either run, (*3)

$ php composer.phar require webtoucher/yii2-migrate "*"

or add, (*4)

"webtoucher/yii2-migrate": "*"

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

Add the following in your console config:, (*6)

return [
    ...
    'controllerMap' => [
        ...
        'migrate' => [
            'class' => 'webtoucher\migrate\controllers\MigrateController',
            // alias of modules directory
            // 'modulesPath' => '@app/modules',
            // additional aliases of migration directories
            // 'migrationLookup' => [],
        ],
        ...
    ],
    ...
];

Usage

To create migration in common directory @app/migration use follow command:, (*7)

$ php yii migrate/create comment_for_migration

To create migration in directory of the module @app/modules/module_name/migration use follow command:, (*8)

$ php yii migrate/create comment_for_migration module_name

To run all migration from common directory and from directories of the modules use follow command:, (*9)

$ php yii migrate

The Versions

25/08 2014

dev-master

9999999-dev https://github.com/webtoucher/yii2-migrate

Yii 2 extension for creating and running migrations

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

by Alexey Kuznetsov

extension yii migrate

25/07 2014

v1.0.1

1.0.1.0 https://github.com/webtoucher/yii2-migrate

Yii 2 extension for creating and running migrations

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

by Alexey Kuznetsov

extension yii migrate

23/07 2014

v1.0.0

1.0.0.0 https://github.com/webtoucher/yii2-migrate

Yii 2 extension for creating and running migrations

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

by Alexey Kuznetsov

extension yii migrate