2018-05-17 Fred Gleason <fredg@paravelsystems.com>

* Added virtual log entries to the 'LOG_MODES' table.
	* Incremented the database version to 280.
	* Added a control for setting vLog start modes to the 'Log Mode
	Control' section of the 'Configure RDAirPlay' dialog in rdadmin(1).
This commit is contained in:
Fred Gleason
2018-05-17 17:28:16 +00:00
parent 4cd5d91b10
commit f26258760d
8 changed files with 113 additions and 14 deletions

View File

@@ -275,6 +275,10 @@ void MainObject::Revert(int schema) const
case 279:
Revert279();
break;
case 280:
Revert280();
break;
}
}
@@ -1022,6 +1026,19 @@ void MainObject::Revert279() const
}
void MainObject::Revert280() const
{
QString sql;
RDSqlQuery *q;
sql=QString("delete from LOG_MODES where MACHINE>=100");
q=new RDSqlQuery(sql,false);
delete q;
SetVersion(279);
}
int MainObject::GetVersion() const
{
QString sql;
@@ -1068,7 +1085,7 @@ int MainObject::MapSchema(const QString &ver)
version_map["2.17"]=268;
version_map["2.18"]=272;
version_map["2.19"]=275;
version_map["2.20"]=279;
version_map["2.20"]=280;
//
// Normalize String

View File

@@ -75,6 +75,7 @@ class MainObject : public QObject
void Revert277() const;
void Revert278() const;
void Revert279() const;
void Revert280() const;
int GetVersion() const;
void SetVersion(int schema) const;
int MapSchema(const QString &ver);