mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 17:13:47 +02:00
2018-03-11 Fred Gleason <fredg@paravelsystems.com>
* Converted ripcd(8) to use RDApplication. * Documented a 'Notification' message type in 'docs/apis/notification.xml'. * Added an 'RDMulticaster' class. * Added an 'mcast_recv_test' program in 'tests/'. * Added a 'SYSTEM.NOTIFICATION_ADDRESS' field to the database. * Incremented the database version to 276. * Added an 'Mcast Address for Notifications' control to the 'System-Wide Settings' dialog in rdadmin(1). * Implemented the 'Process Notification' ['ON'] command in ripcd(8). * Added an 'RDRipc::sendNotification()' method. * Added an 'RDRipc::notificationReceived()' signal.
This commit is contained in:
@@ -259,6 +259,10 @@ void MainObject::Revert(int schema) const
|
||||
case 275:
|
||||
Revert275();
|
||||
break;
|
||||
|
||||
case 276:
|
||||
Revert276();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -825,6 +829,19 @@ void MainObject::Revert275() const
|
||||
}
|
||||
|
||||
|
||||
void MainObject::Revert276() const
|
||||
{
|
||||
QString sql;
|
||||
RDSqlQuery *q;
|
||||
|
||||
sql=QString("alter table SYSTEM drop column NOTIFICATION_ADDRESS");
|
||||
q=new RDSqlQuery(sql,false);
|
||||
delete q;
|
||||
|
||||
SetVersion(275);
|
||||
}
|
||||
|
||||
|
||||
int MainObject::GetVersion() const
|
||||
{
|
||||
QString sql;
|
||||
@@ -871,6 +888,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"]=276;
|
||||
|
||||
//
|
||||
// Normalize String
|
||||
|
@@ -71,6 +71,7 @@ class MainObject : public QObject
|
||||
void Revert273() const;
|
||||
void Revert274() const;
|
||||
void Revert275() const;
|
||||
void Revert276() const;
|
||||
int GetVersion() const;
|
||||
void SetVersion(int schema) const;
|
||||
int MapSchema(const QString &ver);
|
||||
|
Reference in New Issue
Block a user