Commit e93ed1cc authored by Ronan's avatar Ronan

fix(MainDb): do not update module version if it is unchanged

parent 1cf7027e
......@@ -1033,6 +1033,10 @@ static constexpr string &blobToString (string &in) {
void MainDbPrivate::updateModuleVersion (const string &name, unsigned int version) {
unsigned int oldVersion = getModuleVersion(name);
if (oldVersion == version)
soci::session *session = dbSession.getBackendSession<soci::session>();
*session << "REPLACE INTO db_module_version (name, version) VALUES (:name, :version)",
soci::use(name), soci::use(version);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment