write.py: After the bsddb version has been upgraded, if the schema versions also needs to be upgraded, output a separate dialog asking the user whether he wants to upgrade the schema. (As requested by Benny).
svn: r21888
This commit is contained in:
parent
b72ddb7f47
commit
60b57a996e
@ -634,7 +634,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
|
|||||||
if self.need_schema_upgrade():
|
if self.need_schema_upgrade():
|
||||||
_LOG.debug("Schema upgrade required from %s to %s" %
|
_LOG.debug("Schema upgrade required from %s to %s" %
|
||||||
(self.metadata.get(b'version', default=0), _DBVERSION))
|
(self.metadata.get(b'version', default=0), _DBVERSION))
|
||||||
if force_schema_upgrade == True or force_bsddb_upgrade == True:
|
if force_schema_upgrade == True:
|
||||||
self.gramps_upgrade(callback)
|
self.gramps_upgrade(callback)
|
||||||
else:
|
else:
|
||||||
self.__close_early()
|
self.__close_early()
|
||||||
|
Loading…
Reference in New Issue
Block a user