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:
Fred Gleason
2017-12-20 18:16:22 -05:00
parent 6b34f4d70e
commit aec8bba723
15 changed files with 365 additions and 43 deletions

View File

@@ -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

View File

@@ -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);