From 1d186db6a69344b12ab7111b29fb97dddc023774 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Thu, 6 Oct 2022 16:08:39 +0530 Subject: [PATCH] fix: disable autocommit before each patch (#18307) --- frappe/modules/patch_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/modules/patch_handler.py b/frappe/modules/patch_handler.py index d5a37f52a5..00d0e8167d 100644 --- a/frappe/modules/patch_handler.py +++ b/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:"):