fix(patch): skip patch if column doesn't exist
This commit is contained in:
parent
58cc3b32fa
commit
dc8dad4456
@ -2,7 +2,14 @@ import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
sr_item = frappe.qb.DocType("Stock Reconciliation Item")
|
||||
|
||||
doctype = "Stock Reconciliation Item"
|
||||
|
||||
if not frappe.db.has_column(doctype, "current_serial_no"):
|
||||
# nothing to fix if column doesn't exist
|
||||
return
|
||||
|
||||
sr_item = frappe.qb.DocType(doctype)
|
||||
|
||||
(frappe.qb
|
||||
.update(sr_item)
|
||||
|
Loading…
x
Reference in New Issue
Block a user