From 2a1ba886f10c8ccf967dfde20a512d456563a470 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 15 Oct 2015 16:56:53 +0530 Subject: [PATCH] [patch-fix] --- erpnext/patches/v6_4/email_digest_update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/patches/v6_4/email_digest_update.py b/erpnext/patches/v6_4/email_digest_update.py index 54e9a04254..a1624276fe 100644 --- a/erpnext/patches/v6_4/email_digest_update.py +++ b/erpnext/patches/v6_4/email_digest_update.py @@ -4,3 +4,6 @@ def execute(): frappe.reload_doctype("Email Digest") frappe.db.sql("""update `tabEmail Digest` set expense_year_to_date = income_year_to_date""") + + if frappe.db.exists("Email Digest", "Scheduler Errors"): + frappe.delete_doc("Email Digest", "Scheduler Errors")