mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-13 06:31:48 +00:00
Merge pull request #57882 from frappe/mergify/bp/version-16-hotfix/pr-57880
fix: guard reconciliation table deletes when tables are missing (backport #57880)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import frappe
|
||||
from frappe import qb
|
||||
|
||||
|
||||
@@ -13,5 +14,8 @@ def execute():
|
||||
"Payment Reconciliation Allocation",
|
||||
]
|
||||
for x in doctypes:
|
||||
# child tables may not exist yet on sites where this pre-model-sync patch runs first
|
||||
if not frappe.db.table_exists(x):
|
||||
continue
|
||||
dt = qb.DocType(x)
|
||||
qb.from_(dt).delete().run()
|
||||
|
||||
Reference in New Issue
Block a user