Frappe-安装应用程序时未执行补丁程序

发布于 2025-02-04 03:07:46 字数 316 浏览 4 评论 0原文

我们正在开发一个自定义应用程序。自定义应用程序具有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, say
bench --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 site
bench --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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

递刀给你 2025-02-11 03:07:46

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文