Browse Source

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 years ago
committed by GitHub
parent
commit
c13bd94049
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      frappe/modules/patch_handler.py

+ 1
- 0
frappe/modules/patch_handler.py View File

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


Loading…
Cancel
Save