finally-a-fast / fafcms-updater
此包已被放弃,不再维护。未建议替代包。
Yii2 扩展,用于创建类似迁移的更新脚本。
v0.1.0-alpha
2020-09-29 08:00 UTC
Requires
- php: ^7.4
- yiisoft/yii2: ~2.0.32
Requires (Dev)
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2022-04-09 17:54:01 UTC
README
一个用于创建和运行更新脚本(如迁移)的 Yii2 扩展。
安装
安装此扩展的首选方式是通过 Composer。
运行
php composer.phar require finally-a-fast/fafcms-updater
或将以下内容添加到您的 composer.json
文件中的 require 部分:
"finally-a-fast/fafcms-core": "dev-master"
```json
文档
要初始化数据库表,运行
./yii migrate --migrationPath=@vendor/finally-a-fast/fafcms-updater/src/migrations
要创建一个新的更新类,运行
./yii update/create <name>
要运行更新,运行
./yii update <number-of-updates>
完整的文档将在 https://www.finally-a-fast.com/ 上尽快添加。
许可证
fafcms-updater 根据 MIT 许可证发布。有关详细信息,请参阅 LICENSE.md。