chore: patch to drop old index

* there is a better covering index now
This commit is contained in:
Hussain Nagaria 2025-11-28 11:48:55 +05:30
parent 5fd6691548
commit 01d2e24f4a
3 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,8 @@
import frappe
from frappe.patches.v14_0.drop_unused_indexes import drop_index_if_exists
def execute():
index_fields = ["reference_doctype", "reference_name"]
index_name = frappe.db.get_index_name(index_fields)
drop_index_if_exists("tabCommunication", index_name)

View file

@ -251,3 +251,4 @@ frappe.patches.v16_0.add_module_deprecation_warning
frappe.patches.v16_0.auto_generate_desktop_icon_and_sidebar
frappe.patches.v16_0.add_private_workspaces_to_sidebar
frappe.core.doctype.communication_link.patches.copy_communication_date_to_link
frappe.core.doctype.communication.patches.drop_ref_dt_dn_index