Rename table fieldnames only if doctype exists
This commit is contained in:
parent
affb3ec220
commit
fedcb242ef
@ -227,6 +227,7 @@ def execute():
|
||||
frappe.reload_doc("accounts", "doctype", "fiscal_year_company")
|
||||
|
||||
#rename table fieldnames
|
||||
if frappe.db.exists("DocType", dn):
|
||||
for dn in rename_map:
|
||||
frappe.reload_doc(get_doctype_module(dn), "doctype", scrub(dn))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user