定制 yii2-bridge/migrate-command 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

yii2-bridge/migrate-command

Composer 安装命令:

composer require yii2-bridge/migrate-command

包简介

Run migrate for Bridge

README 文档

README

If you cannot start yii2-bridge/core migrations using a terminal (especially if your project is on a shared hosting), install this package and start migrating via php.

Installation

Composer

The preferred way to install this extension is through Composer.

Either run:

composer require yii2-bridge/migrate-command:^0.1.1

or add "yii2-bridge/migrate-command": "^0.1.1" to the require section of your composer.json

Using

Add a module Bridge\Migrate\Modules\Module in the configuration file of the console application to the modules section of the admin module:

'console' => [
    ...    
    'modules' => [
        'admin' => [
            'class' => \Bridge\Core\BridgeModule::class,
            'modules' => [
                'migrate' => [
                    'class' => 'Bridge\Migrate\Modules\Module',
                ],
            ],
            ...
        ]
    ],
    ...
]

To start the migration, just run the command:

php yii admin/migrate

If you want to run migrations on a shared hosting, you can run as php script through cron.
For example for shared hosting PS.kz: PS.kz

Author

Altynbek Kazezov, e-mail: altynbek.kazezov.97@gmail.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-04-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固