mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-10 16:43:35 +02:00
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:
@@ -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
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user