2017-10-15 Fred Gleason <fredg@paravelsystems.com>

* Added a 'STATIONS.SHORT_NAME' field to the database.
	* Incremented the database version to 270.
	* Added 'RDStation::shortName()' and 'RDStation::setShortName()'
	methods.
	* Removed the 'Broadcast Security Model' control from the 'Edit
	Host' dialog.
	* Added a 'Short Name' control to the 'Edit Host' dialog.
	* Implemented a '%R' wildcard for Rivendell Host Short Name.
This commit is contained in:
Fred Gleason
2017-10-15 10:40:29 -04:00
parent ee211e5fca
commit 52d1d8be52
58 changed files with 600 additions and 506 deletions

View File

@@ -235,6 +235,10 @@ void MainObject::Revert(int schema) const
case 269:
Revert269();
break;
case 270:
Revert270();
break;
}
}
@@ -706,6 +710,19 @@ void MainObject::Revert269() const
}
void MainObject::Revert270() const
{
QString sql;
QSqlQuery *q;
sql="alter table STATIONS drop column SHORT_NAME";
q=new QSqlQuery(sql);
delete q;
SetVersion(269);
}
int MainObject::GetVersion() const
{
QString sql;
@@ -750,7 +767,7 @@ int MainObject::MapSchema(const QString &ver)
version_map["2.15"]=259;
version_map["2.16"]=263;
version_map["2.17"]=268;
version_map["2.18"]=269;
version_map["2.18"]=270;
//
// Normalize String

View File

@@ -65,6 +65,7 @@ class MainObject : public QObject
void Revert267() const;
void Revert268() const;
void Revert269() const;
void Revert270() const;
int GetVersion() const;
void SetVersion(int schema) const;
int MapSchema(const QString &ver);