chore: patch to drop old index
* there is a better covering index now
This commit is contained in:
parent
5fd6691548
commit
01d2e24f4a
3 changed files with 9 additions and 0 deletions
0
frappe/core/doctype/communication/patches/__init__.py
Normal file
0
frappe/core/doctype/communication/patches/__init__.py
Normal 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)
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue