Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据 Directus 文档,https: //docs.directus.io/guides/upgrading.html 将当前版本 7 升级到较新版本 (7.x) 的正确程序是从 git 中提取新版本:
git pull origin
但是,这会导致错误说明本地更改,例如位于以下位置的迁移文件中的迁移:migrations/db/schemas/ 和更多位置将被覆盖,因此将不会执行操作(以错误结束)。
链接页面上的说明不正确还是我在这里做错了什么?
任何帮助表示赞赏
/克里斯
问题似乎是您在 Directus 中手动修改了文件,因此您的本地 Git 期望在更新之前提交更改,您可能需要强制更新,但您所做的任何更改都将被覆盖。
您的 config.php 和上传内容应该保持不变。