diff --git a/frappe/patches.txt b/frappe/patches.txt index 49dc25355c..d5ca70fef3 100644 --- a/frappe/patches.txt +++ b/frappe/patches.txt @@ -20,6 +20,7 @@ execute:frappe.reload_doc('custom', 'doctype', 'property_setter') #2014-12-31-1 execute:frappe.reload_doc('core', 'doctype', 'patch_log') #2016-10-31 execute:frappe.reload_doctype("File") # 2015-10-19 execute:frappe.reload_doc('core', 'doctype', 'error_snapshot') +execute:frappe.clear_cache() frappe.patches.v7_1.sync_language_doctype frappe.patches.v7_0.rename_bulk_email_to_email_queue frappe.patches.v7_1.rename_chinese_language_codes diff --git a/frappe/patches/v7_1/rename_scheduler_log_to_error_log.py b/frappe/patches/v7_1/rename_scheduler_log_to_error_log.py index cb2dcf67a7..fdc6b0a44f 100644 --- a/frappe/patches/v7_1/rename_scheduler_log_to_error_log.py +++ b/frappe/patches/v7_1/rename_scheduler_log_to_error_log.py @@ -3,8 +3,8 @@ import frappe def execute(): if not 'tabError Log' in frappe.db.get_tables(): frappe.rename_doc('DocType', 'Scheduler Log', 'Error Log') - frappe.db.commit() frappe.db.sql("""delete from `tabError Log` where datediff(curdate(), creation) > 30""") + frappe.db.commit() frappe.db.sql('alter table `tabError Log` change column name name varchar(140)') frappe.db.sql('alter table `tabError Log` change column parent parent varchar(140)') - frappe.db.sql('alter table `tabError Log` engine=MyISAM') \ No newline at end of file + frappe.db.sql('alter table `tabError Log` engine=MyISAM')