diff --git a/frappe/patches/v8_1/delete_custom_docperm_if_doctype_not_exists.py b/frappe/patches/v8_1/delete_custom_docperm_if_doctype_not_exists.py index 18576a3029..ce6bc31364 100644 --- a/frappe/patches/v8_1/delete_custom_docperm_if_doctype_not_exists.py +++ b/frappe/patches/v8_1/delete_custom_docperm_if_doctype_not_exists.py @@ -3,5 +3,5 @@ import frappe def execute(): frappe.db.sql("""delete from `tabCustom DocPerm` where parent not in ( select name from `tabDocType` ) - and parent not in ( select name from `tabCustom Doctype` ) + and parent not in ( select name from `tabCustom DocType` ) """)