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 a 'RDAIRPLAY.VIRTUAL_EXIT_CODE' field to the database. * Incremented the database version to 281. * Added 'RDAirPlayConf::virtualExitCode()' and 'RDAirPlayConf::setVirtualExitCode()' methods. * Implemented Start/Stop settings for vlogs.
This commit is contained in:
@@ -279,6 +279,10 @@ void MainObject::Revert(int schema) const
|
||||
case 280:
|
||||
Revert280();
|
||||
break;
|
||||
|
||||
case 281:
|
||||
Revert281();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1039,6 +1043,19 @@ void MainObject::Revert280() const
|
||||
}
|
||||
|
||||
|
||||
void MainObject::Revert281() const
|
||||
{
|
||||
QString sql;
|
||||
RDSqlQuery *q;
|
||||
|
||||
sql=QString("alter table RDAIRPLAY drop column VIRTUAL_EXIT_CODE");
|
||||
q=new RDSqlQuery(sql,false);
|
||||
delete q;
|
||||
|
||||
SetVersion(280);
|
||||
}
|
||||
|
||||
|
||||
int MainObject::GetVersion() const
|
||||
{
|
||||
QString sql;
|
||||
@@ -1085,7 +1102,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"]=280;
|
||||
version_map["2.20"]=281;
|
||||
|
||||
//
|
||||
// Normalize String
|
||||
|
@@ -76,6 +76,7 @@ class MainObject : public QObject
|
||||
void Revert278() const;
|
||||
void Revert279() const;
|
||||
void Revert280() const;
|
||||
void Revert281() const;
|
||||
int GetVersion() const;
|
||||
void SetVersion(int schema) const;
|
||||
int MapSchema(const QString &ver);
|
||||
|
Reference in New Issue
Block a user