Commit 701685a9 authored by Simon Morlat's avatar Simon Morlat

Fix db management version (do not go backward)

parent e9f857c7
......@@ -968,7 +968,7 @@ unsigned int MainDbPrivate::getModuleVersion (const string &name) {
void MainDbPrivate::updateModuleVersion (const string &name, unsigned int version) {
unsigned int oldVersion = getModuleVersion(name);
if (oldVersion == version)
if (version <= oldVersion)
soci::session *session = dbSession.getBackendSession();
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