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:

Author
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-04-08