bobdenotter / yaml-migrations
一个用于简化YAML配置文件迁移的库
1.2.0
2023-02-14 11:00 UTC
Requires
- bobdenotter/commando: ^0.4 || ^1.0
- composer/semver: ^3.2
- symfony/finder: ^5.1
- symfony/var-dumper: ^5.1
- symfony/yaml: ^5.1
- webimpress/safe-writer: ^2.1
Requires (Dev)
- phpunit/phpunit: ^8.5
- symplify/easy-coding-standard: ^8.3
README
一个用于简化YAML配置文件迁移的库
运行迁移
独立模式
bin/yaml-migrate process -c config.yaml -v
强制运行单个文件,方便测试
bin/yaml-migrate process -c config.yaml -v -f m_replace.yaml
在Bolt安装环境中运行
vendor/bobdenotter/yaml-migrations/bin/yaml-migrate process -c vendor/bolt/core/yaml-migrations/config.yaml -v
提示:重置检查点
echo '1.0.0' > sample/migrations/checkpoint.txt