2017 © Pedro Peláez
 

yii2-extension yii2-migrate

yii2 database migration

image

xiaochengfu/yii2-migrate

yii2 database migration

  • Friday, April 21, 2017
  • by xiaochengfu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

database migration

yii2 database migration ,it is easy!, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist xiaochengfu/yii2-migrate "*"

or add, (*4)

"xiaochengfu/yii2-migrate": "*"

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

Usage

Once the extension is installed, simply use it in your code by :, (*6)

网页端使用:, (*7)

1.在 backend/config/main.php 添加如下配置, (*8)

'modules' => [
        'migration' => [
            'class' => 'xiaochengfu\migrate\Module',
        ]
    ],

2.在你的后台访问 http://yourdomain/migration, (*9)

演示地址: http://yii.phpsy.cn/migration, (*10)

命令行使用方法:, (*11)

1.在console/config/main.php 添加如下配置, (*12)

'controllerMap' => [
        'migrate' => [
                    'class' => 'xiaochengfu\migrate\console\MigrateController',
                    'useTablePrefix' => true,
                    'migrationPath' => '@console/migrations',
                ],
    ],

2.将迁移文件转存,及备份 php yii migrate/dump, (*13)

3.还原指定文件, (*14)

php yii migrate/to m170420_151515_migration.php, (*15)

The Versions

21/04 2017

dev-master

9999999-dev

yii2 database migration

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2

21/04 2017

v1.1.2

1.1.2.0

yii2 database migration

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2

21/04 2017

v1.1.1

1.1.1.0

yii2 database migration

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2

21/04 2017

v1.1.0

1.1.0.0

yii2 database migration

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2

25/02 2017

v1.0

1.0.0.0

yii2 database migration

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2