core (memory/sqlite): do not call commitStatements if there is nothing to commit in checkUpdates
This commit is contained in:
parent
1a9e8d8cb1
commit
51bc3411ba
1 changed files with 1 additions and 1 deletions
|
|
@ -990,7 +990,7 @@ class Updater(object):
|
||||||
update_data = DATABASE_SCHEMAS[version]
|
update_data = DATABASE_SCHEMAS[version]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise exceptions.InternalError("Missing update definition (version %d)" % version)
|
raise exceptions.InternalError("Missing update definition (version %d)" % version)
|
||||||
if "specific" in update_data:
|
if "specific" in update_data and update_raw:
|
||||||
# if we have a specific, we must commit current statements
|
# if we have a specific, we must commit current statements
|
||||||
# because a specific may modify database itself, and the database
|
# because a specific may modify database itself, and the database
|
||||||
# must be in the expected state of the previous version.
|
# must be in the expected state of the previous version.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue