* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Delete column
metadata. svn: r6422
This commit is contained in:
parent
3bce7bb1cc
commit
4dfb3d1608
@ -3,6 +3,8 @@
|
|||||||
* src/plugins/TestcaseGenerator.py: fix BIRTH, DEATH constants
|
* src/plugins/TestcaseGenerator.py: fix BIRTH, DEATH constants
|
||||||
|
|
||||||
2006-04-23 Alex Roitman <shura@gramps-project.org>
|
2006-04-23 Alex Roitman <shura@gramps-project.org>
|
||||||
|
* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Delete column
|
||||||
|
metadata.
|
||||||
* src/PluginUtils/_PluginStatus.py (PluginTrace.__init__): Set
|
* src/PluginUtils/_PluginStatus.py (PluginTrace.__init__): Set
|
||||||
scrolling policy to auto;
|
scrolling policy to auto;
|
||||||
(PluginTrace.close_window): Add method.
|
(PluginTrace.close_window): Add method.
|
||||||
|
@ -1259,6 +1259,15 @@ class GrampsBSDDB(GrampsDbBase):
|
|||||||
# primary tables and remove them.
|
# primary tables and remove them.
|
||||||
status,length = low_level_9(self)
|
status,length = low_level_9(self)
|
||||||
|
|
||||||
|
# Remove column metadata, since columns have changed.
|
||||||
|
# This will reset all columns to defaults
|
||||||
|
for name in (PERSON_COL_KEY,CHILD_COL_KEY,PLACE_COL_KEY,SOURCE_COL_KEY,
|
||||||
|
MEDIA_COL_KEY,EVENT_COL_KEY,FAMILY_COL_KEY):
|
||||||
|
try:
|
||||||
|
self.metadata.delete(name)
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
# Then we remove the surname secondary index table
|
# Then we remove the surname secondary index table
|
||||||
# because its format changed from HASH to DUPSORTed BTREE.
|
# because its format changed from HASH to DUPSORTed BTREE.
|
||||||
junk = db.DB(self.env)
|
junk = db.DB(self.env)
|
||||||
|
Loading…
Reference in New Issue
Block a user