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: r21886
This commit is contained in:
Tim G L Lyons 2013-04-05 10:52:33 +00:00
parent 225f6e545f
commit b63524b99b

View File

@ -593,7 +593,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('version', default=0), _DBVERSION)) (self.metadata.get('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()