From 9e5df7aeff5038752cdf679f1441022238b55dff Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 11 Jul 2017 11:00:10 +0530 Subject: [PATCH] [fix] patch --- .../patches/v8_1/delete_custom_docperm_if_doctype_not_exists.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a46db68a16..18576a3029 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 @@ -2,6 +2,6 @@ import frappe def execute(): frappe.db.sql("""delete from `tabCustom DocPerm` - where parent not in ( select name from `tabDoctype` ) + where parent not in ( select name from `tabDocType` ) and parent not in ( select name from `tabCustom Doctype` ) """)