def on_doctype_update():
	frappe.db.add_index("Communication", ["reference_doctype", "reference_name"])
	frappe.db.add_index("Communication", ["timeline_doctype", "timeline_name"])
Add index in `tabCommunication` for `(reference_doctype, reference_name)`
dataset/ETHPy150Open frappe/frappe/frappe/core/doctype/communication/communication.py/on_doctype_update