Fixed bug in DB schema versioning.

print
Josef Rokos 8 years ago
parent bf67dadaeb
commit d7952b987d

@ -239,7 +239,7 @@ void Context::createSchema(IPlugin *plugin, const QSqlDatabase &db, const QMap<Q
continue;
}
if (ver == 0)
if (ver == 0 && i == 0)
{
sql = "INSERT INTO system(pluginId, schemaVersion) VALUES('" + plugin->pluginId() + "', 1)";
}

Loading…
Cancel
Save