From 0455cb90ce89141158f33f760bc9446b69f0943f Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 7 May 2016 14:40:36 -0400 Subject: [PATCH] 9442: Windows SQLite database has indexes that Linux SQLite can't read --- gramps/plugins/database/dbapi.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gramps/plugins/database/dbapi.py b/gramps/plugins/database/dbapi.py index 23deaafdb..096792b3a 100644 --- a/gramps/plugins/database/dbapi.py +++ b/gramps/plugins/database/dbapi.py @@ -1770,10 +1770,9 @@ class DBAPI(DbGeneric): Create secondary indexes for just this table. """ table_name = table.lower() - for fields in self.get_table_func(table,"class_func").get_index_fields(): - for field in fields: - field = self._hash_name(table, field) - self.dbapi.try_execute("CREATE INDEX %s_%s ON %s(%s);" % (table, field, table_name, field)) + for field in self.get_table_func(table,"class_func").get_index_fields(): + field = self._hash_name(table, field) + self.dbapi.try_execute("CREATE INDEX %s_%s ON %s(%s);" % (table, field, table_name, field)) def update_secondary_values_all(self): """