comprobaciones de versi?n de la DB implementadas.

Versi?n 5.0 RC1.
This commit is contained in:
Luis Ángel San Martín
2012-07-10 20:14:18 +02:00
parent dbfaaa2d96
commit 7692ecb2ba
5 changed files with 74 additions and 33 deletions

View File

@ -494,14 +494,24 @@ QString DataBaseManagement::checkValidDB(const QString & fullPath)
version.exec();
if(version.next())
{
db.close();
QSqlDatabase::removeDatabase(fullPath);
return version.record().value("version").toString();
}
else
{
db.close();
QSqlDatabase::removeDatabase(fullPath);
return "";
}
}
else
return "";
{
db.close();
QSqlDatabase::removeDatabase(fullPath);
return "";
}
}
int DataBaseManagement::compareVersions(const QString & v1, const QString v2)