mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 14:18:07 +00:00
fix(MainDb): do not update module version if it is unchanged
This commit is contained in:
parent
1cf7027eb1
commit
e93ed1cc3f
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
return;
|
||||
|
||||
soci::session *session = dbSession.getBackendSession<soci::session>();
|
||||
*session << "REPLACE INTO db_module_version (name, version) VALUES (:name, :version)",
|
||||
soci::use(name), soci::use(version);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue