mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 15:16:07 +01:00
2017-09-20 Fred Gleason <fredg@paravelsystems.com>
* Added a 'DROPBOXES.FORCE_TO_MONO' field to the database. * Incremented the database version to 268. * 'RDDropbox::forceToMono()' and 'RDDropbox::setForceToMon()' methods in 'lib/rddropbox.cpp' and 'lib/rddropbox.h'. * Added a 'Force to Monaural' checkbox to the 'Edit Dropbox' dialog in rdadmin(1).
This commit is contained in:
@@ -227,6 +227,10 @@ void MainObject::Revert(int schema) const
|
||||
case 267:
|
||||
Revert267();
|
||||
break;
|
||||
|
||||
case 268:
|
||||
Revert268();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -672,6 +676,19 @@ void MainObject::Revert267() const
|
||||
}
|
||||
|
||||
|
||||
void MainObject::Revert268() const
|
||||
{
|
||||
QString sql;
|
||||
QSqlQuery *q;
|
||||
|
||||
sql="alter table DROPBOXES drop column FORCE_TO_MONO";
|
||||
q=new QSqlQuery(sql);
|
||||
delete q;
|
||||
|
||||
SetVersion(267);
|
||||
}
|
||||
|
||||
|
||||
int MainObject::GetVersion() const
|
||||
{
|
||||
QString sql;
|
||||
@@ -715,7 +732,7 @@ int MainObject::MapSchema(const QString &ver)
|
||||
version_map["2.14"]=258;
|
||||
version_map["2.15"]=259;
|
||||
version_map["2.16"]=263;
|
||||
version_map["2.17"]=267;
|
||||
version_map["2.17"]=268;
|
||||
|
||||
//
|
||||
// Normalize String
|
||||
|
||||
@@ -63,6 +63,7 @@ class MainObject : public QObject
|
||||
void Revert265() const;
|
||||
void Revert266() const;
|
||||
void Revert267() const;
|
||||
void Revert268() const;
|
||||
int GetVersion() const;
|
||||
void SetVersion(int schema) const;
|
||||
int MapSchema(const QString &ver);
|
||||
|
||||
Reference in New Issue
Block a user