浏览代码
fix: disable autocommit before each patch (#18307) (#18308)
(cherry picked from commit 1d186db6a6
)
Co-authored-by: Ankush Menat <ankush@frappe.io>
version-14
mergify[bot]
2 年前
committed by
GitHub
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有
1 个文件被更改,包括
1 次插入 和
0 次删除
-
frappe/modules/patch_handler.py
|
|
@@ -175,6 +175,7 @@ def execute_patch(patchmodule, method=None, methodargs=None): |
|
|
|
|
|
|
|
start_time = time.time() |
|
|
|
frappe.db.begin() |
|
|
|
frappe.db.auto_commit_on_many_writes = 0 |
|
|
|
try: |
|
|
|
if patchmodule: |
|
|
|
if patchmodule.startswith("finally:"): |
|
|
|