svn: r5578
This commit is contained in:
Alex Roitman 2005-12-18 01:29:54 +00:00
parent a4e6bd186f
commit 82c1553035

View File

@ -918,6 +918,7 @@ class GrampsBSDDB(GrampsDbBase):
"Sponsored", "Foster", "Unknown", "Other", ]
version = self.metadata.get('version',_MINVERSION)
print version
if version < 6:
self.gramps_upgrade_6()
@ -929,6 +930,9 @@ class GrampsBSDDB(GrampsDbBase):
self.gramps_upgrade_9()
self.metadata['version'] = _DBVERSION
print "set version to %d" % _DBVERSION
print "actual version now is %d" % self.metadata['version']
self.metadata.sync()
def gramps_upgrade_6(self):
print "Upgrading to DB version 6"