diff --git a/frappe/patches/v8_5/patch_event_colors.py b/frappe/patches/v8_5/patch_event_colors.py index 7a48b6c3e2..8ac7aec238 100644 --- a/frappe/patches/v8_5/patch_event_colors.py +++ b/frappe/patches/v8_5/patch_event_colors.py @@ -2,6 +2,10 @@ from __future__ import unicode_literals import frappe def execute(): + + if not frappe.db.sql("SHOW COLUMNS FROM `tabEvent` LIKE 'color';"): + return + colors = ['red', 'green', 'blue', 'yellow', 'skyblue', 'orange'] hex_colors = ['#ffc4c4', '#cef6d1', '#d2d2ff', '#fffacd', '#d2f1ff', '#ffd2c2']