* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Delete column

metadata.


svn: r6422
This commit is contained in:
Alex Roitman 2006-04-23 21:32:11 +00:00
parent c44729fb3a
commit 2ac5030dc5
2 changed files with 11 additions and 0 deletions

View File

@ -3,6 +3,8 @@
* src/plugins/TestcaseGenerator.py: fix BIRTH, DEATH constants
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
scrolling policy to auto;
(PluginTrace.close_window): Add method.

View File

@ -1259,6 +1259,15 @@ class GrampsBSDDB(GrampsDbBase):
# primary tables and remove them.
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
# because its format changed from HASH to DUPSORTed BTREE.
junk = db.DB(self.env)