fix: add index on child table
This commit is contained in:
parent
00df2ddbad
commit
da2d1d7bb1
1 changed files with 4 additions and 2 deletions
|
|
@ -3,8 +3,10 @@
|
|||
# For license information, please see license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
# import frappe
|
||||
import frappe
|
||||
from frappe.model.document import Document
|
||||
|
||||
class GlobalSearchDocType(Document):
|
||||
pass
|
||||
|
||||
def on_doctype_update():
|
||||
frappe.db.add_index("Global Search DocType", ["document_type"])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue