Frappe-安装应用程序时未执行补丁程序
我们正在开发一个自定义应用程序。自定义应用程序具有patches.txt
的一些修补程序。
现在,当我们在网站上安装自定义应用时,说 台式 - site [siteName] instal-app custa-app
即使PatchLog
表具有所有补丁程序条目,这些补丁也不会执行。
但是,当我们在现有站点上进行bench迁移
台式-Site [SiteName2]迁移
补丁成功执行。 这是Frappe中的正常行为吗?安装应用程序时如何执行补丁?
We are developing a custom app. The custom app has some patches defined in patches.txt
.
Now, when we install the custom app on the site, saybench --site [sitename] install-app custom-app
The patches do not get executed even though the patchLog
table has all the patch entries.
However, when we do bench migrate
on an existing sitebench --site [sitename2] migrate
The patches get executed successfully.
Is this the normal behavior in frappe? How do we get the patches executed when installing the app?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Bench
install-app
命令将仅在所选站点上安装该特定应用程序。在应用程序安装期间,它不会运行任何补丁。这是大多数Web框架(例如Blask,Django)的默认行为。
要运行补丁/迁移,用户必须手动运行
迁移
命令才能运行所有待处理的补丁/迁移。Bench
install-app
command will only install that particular app on the selected site. It will not run any patches during app installation.This is the default behaviour with most of the web frameworks like Flask, Django.
To run patches/migrations, users have to manually run
migrate
command to run all the pending patches/migrations.