Update
svn: r5578
This commit is contained in:
parent
d8ba4dd42e
commit
5975d9cf4e
@ -918,6 +918,7 @@ class GrampsBSDDB(GrampsDbBase):
|
|||||||
"Sponsored", "Foster", "Unknown", "Other", ]
|
"Sponsored", "Foster", "Unknown", "Other", ]
|
||||||
|
|
||||||
version = self.metadata.get('version',_MINVERSION)
|
version = self.metadata.get('version',_MINVERSION)
|
||||||
|
print version
|
||||||
|
|
||||||
if version < 6:
|
if version < 6:
|
||||||
self.gramps_upgrade_6()
|
self.gramps_upgrade_6()
|
||||||
@ -929,6 +930,9 @@ class GrampsBSDDB(GrampsDbBase):
|
|||||||
self.gramps_upgrade_9()
|
self.gramps_upgrade_9()
|
||||||
|
|
||||||
self.metadata['version'] = _DBVERSION
|
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):
|
def gramps_upgrade_6(self):
|
||||||
print "Upgrading to DB version 6"
|
print "Upgrading to DB version 6"
|
||||||
|
Loading…
Reference in New Issue
Block a user