fix: modified index sync
This commit is contained in:
parent
83eadd7257
commit
3fea2726f3
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ class MariaDBTable(DBTable):
|
|||
if not frappe.db.get_column_index(self.table_name, col.fieldname, unique=False)
|
||||
]
|
||||
|
||||
if self.meta.sort_field == "modified" and frappe.db.get_column_index(
|
||||
if self.meta.sort_field == "modified" and not frappe.db.get_column_index(
|
||||
self.table_name, "modified", unique=False
|
||||
):
|
||||
add_index_query.append("ADD INDEX `modified`(`modified`)")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue