Rename rebuild_secondary_fields to _create_secondary_columns
This commit is contained in:
parent
ca105fb73a
commit
c8998cc81c
@ -230,7 +230,7 @@ class DBAPI(DbGeneric):
|
|||||||
'unknown INTEGER'
|
'unknown INTEGER'
|
||||||
')')
|
')')
|
||||||
|
|
||||||
self.rebuild_secondary_fields()
|
self._create_secondary_columns()
|
||||||
|
|
||||||
## Indices:
|
## Indices:
|
||||||
self.dbapi.execute('CREATE INDEX person_gramps_id '
|
self.dbapi.execute('CREATE INDEX person_gramps_id '
|
||||||
@ -822,7 +822,7 @@ class DBAPI(DbGeneric):
|
|||||||
Rebuild secondary indices
|
Rebuild secondary indices
|
||||||
"""
|
"""
|
||||||
# First, expand blob to individual fields:
|
# First, expand blob to individual fields:
|
||||||
self.rebuild_secondary_fields()
|
self.update_secondary_values()
|
||||||
# Next, rebuild stats:
|
# Next, rebuild stats:
|
||||||
gstats = self.get_gender_stats()
|
gstats = self.get_gender_stats()
|
||||||
self.genderStats = GenderStats(gstats)
|
self.genderStats = GenderStats(gstats)
|
||||||
@ -916,7 +916,7 @@ class DBAPI(DbGeneric):
|
|||||||
else:
|
else:
|
||||||
return "BLOB"
|
return "BLOB"
|
||||||
|
|
||||||
def rebuild_secondary_fields(self):
|
def _create_secondary_columns(self):
|
||||||
"""
|
"""
|
||||||
Add secondary fields, update, and create indexes.
|
Add secondary fields, update, and create indexes.
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user