Library Part 2 fixups

Kept recreating the db tables due to an error
in checkDBVersion.
This commit is contained in:
Mark Liversedge
2012-12-21 21:58:59 +00:00
parent 2756a678c7
commit 995b066411

View File

@@ -186,7 +186,7 @@ bool TrainDB::createDatabase()
void TrainDB::checkDBVersion()
{
// can we get a version number?
QSqlQuery query("SELECT table_name, schema_version, creation_date, metadata_crc from version;", dbconn);
QSqlQuery query("SELECT table_name, schema_version, creation_date from version;", dbconn);
bool rc = query.exec();