mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
prepare db update for future 8.6 version
This commit is contained in:
parent
e9210bb366
commit
e130698ee9
@ -686,6 +686,7 @@ bool DataBaseManagement::updateToCurrentVersion(const QString & fullPath)
|
||||
bool pre7 = false;
|
||||
bool pre7_1 = false;
|
||||
bool pre8 = false;
|
||||
bool pre8_6 = false;
|
||||
|
||||
if(compareVersions(DataBaseManagement::checkValidDB(fullPath),"7.0.0")<0)
|
||||
pre7 = true;
|
||||
@ -693,6 +694,8 @@ bool DataBaseManagement::updateToCurrentVersion(const QString & fullPath)
|
||||
pre7_1 = true;
|
||||
if(compareVersions(DataBaseManagement::checkValidDB(fullPath),"8.0.0")<0)
|
||||
pre8 = true;
|
||||
if(compareVersions(DataBaseManagement::checkValidDB(fullPath),"8.6.0")<0)
|
||||
pre8_6 = true;
|
||||
|
||||
QSqlDatabase db = loadDatabaseFromFile(fullPath);
|
||||
bool returnValue = false;
|
||||
@ -745,6 +748,13 @@ bool DataBaseManagement::updateToCurrentVersion(const QString & fullPath)
|
||||
{
|
||||
returnValue = returnValue && createV8Tables(db);
|
||||
}
|
||||
|
||||
if(pre8_6)
|
||||
{
|
||||
QStringList columnDefs;
|
||||
//TODO
|
||||
//returnValue = returnValue && addColumns("folder", columnDefs, db);
|
||||
}
|
||||
}
|
||||
|
||||
db.close();
|
||||
|
Loading…
x
Reference in New Issue
Block a user