浏览代码

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
父节点
当前提交
c13bd94049
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      frappe/modules/patch_handler.py

+ 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:"):


正在加载...
取消
保存