mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-12 09:33:37 +02:00
2017-12-20 Fred Gleason <fredg@paravelsystems.com>
* Added a 'LOGS.LOCK_GUID' field to the database. * Incremented the database version to 274. * Added a 'LockLog' call to the Web API.
This commit is contained in:
@@ -251,6 +251,10 @@ void MainObject::Revert(int schema) const
|
||||
case 273:
|
||||
Revert273();
|
||||
break;
|
||||
|
||||
case 274:
|
||||
Revert274();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -787,6 +791,23 @@ void MainObject::Revert273() const
|
||||
}
|
||||
|
||||
|
||||
void MainObject::Revert274() const
|
||||
{
|
||||
QString sql;
|
||||
RDSqlQuery *q;
|
||||
|
||||
sql=QString("alter table LOGS drop index LOCK_GUID_IDX");
|
||||
q=new RDSqlQuery(sql,false);
|
||||
delete q;
|
||||
|
||||
sql=QString("alter table LOGS drop column LOCK_GUID");
|
||||
q=new RDSqlQuery(sql,false);
|
||||
delete q;
|
||||
|
||||
SetVersion(273);
|
||||
}
|
||||
|
||||
|
||||
int MainObject::GetVersion() const
|
||||
{
|
||||
QString sql;
|
||||
@@ -832,7 +853,7 @@ int MainObject::MapSchema(const QString &ver)
|
||||
version_map["2.16"]=263;
|
||||
version_map["2.17"]=268;
|
||||
version_map["2.18"]=272;
|
||||
version_map["2.19"]=273;
|
||||
version_map["2.19"]=274;
|
||||
|
||||
//
|
||||
// Normalize String
|
||||
|
@@ -69,6 +69,7 @@ class MainObject : public QObject
|
||||
void Revert271() const;
|
||||
void Revert272() const;
|
||||
void Revert273() const;
|
||||
void Revert274() const;
|
||||
int GetVersion() const;
|
||||
void SetVersion(int schema) const;
|
||||
int MapSchema(const QString &ver);
|
||||
|
Reference in New Issue
Block a user