php - phinx "--configuration 选项不存在。"
问题描述
菲尼克斯--configuration
选项发生了什么?我工作中的一个项目依赖于它。
phinx docs:如果
--configuration
给出命令行选项,Phinx 将加载指定的文件。否则, ...
但是当我运行时:
$ ./vendor/bin/phinx --configuration=my_config.php
The "--configuration" option does not exist.
也不--version
返回版本号。
Phinx by CakePHP - https://phinx.org.
解决方案
原来migrate
在脚本中添加一个解决了这个问题,现在它运行良好。
../vendor/bin/phinx migrate --configuration=my_config.php
我猜在某些时候它假设如果您在没有要迁移的迁移的情况下运行它仍然允许您为它传递选项。
推荐阅读
- html - 未采用字体的 CSS 设置
- microsoft-graph-api - Graph-API-Mail:有没有办法返回为英国夏令时调整的 receivedDateTime
- amazon-personalize - InvalidInputException:AWS Personalize 在用户或项目元数据中导入布尔字段时出错
- aws-lambda - 从 Mule Amazon Lambda 连接器传递的 AWS Lambda 函数中的访问标头
- python - Python tkinter Treeview比指定的列更多
- python - 每当我运行 model.predict_classes() 时,我的内核就死了
- reactjs - Firebase 存储:对象不存在
- installation - 如何使用 WIX 将第 3 方 exe 安装程序与其他文件夹/文件捆绑在一起
- reactjs - 静态导出后 Nextjs 按钮 onClick 不起作用
- python - 如果查询集值在列表中