承接 xiaochengfu/yii2-migrate 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xiaochengfu/yii2-migrate

Composer 安装命令:

composer require xiaochengfu/yii2-migrate

包简介

yii2 database migration

README 文档

README

yii2 database migration ,it is easy!

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"xiaochengfu/yii2-migrate": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

网页端使用:

1.在 backend/config/main.php 添加如下配置

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

2.在你的后台访问 http://yourdomain/migration

演示地址: http://yii.phpsy.cn/migration

命令行使用方法:

1.在console/config/main.php 添加如下配置

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

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

3.还原指定文件

php yii migrate/to m170420_151515_migration.php

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-02-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固