mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-26 15:23:50 +01:00
2018-02-15 Fred Gleason <fredg@paravelsystems.com>
* Added a 'SERVICES.LOG_SHELFLIFE_ORIGIN' field to the database. * Incremented the database version to 275. * Added a drop-down control to the 'Set Logs to auto-delete' control to allow origin to be specified in the 'Edit Service' dialog in rdadmin(1).
This commit is contained in:
@@ -255,6 +255,10 @@ void MainObject::Revert(int schema) const
|
||||
case 274:
|
||||
Revert274();
|
||||
break;
|
||||
|
||||
case 275:
|
||||
Revert275();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -808,6 +812,19 @@ void MainObject::Revert274() const
|
||||
}
|
||||
|
||||
|
||||
void MainObject::Revert275() const
|
||||
{
|
||||
QString sql;
|
||||
RDSqlQuery *q;
|
||||
|
||||
sql=QString("alter table SERVICES drop column LOG_SHELFLIFE_ORIGIN");
|
||||
q=new RDSqlQuery(sql,false);
|
||||
delete q;
|
||||
|
||||
SetVersion(274);
|
||||
}
|
||||
|
||||
|
||||
int MainObject::GetVersion() const
|
||||
{
|
||||
QString sql;
|
||||
@@ -853,7 +870,7 @@ int MainObject::MapSchema(const QString &ver)
|
||||
version_map["2.16"]=263;
|
||||
version_map["2.17"]=268;
|
||||
version_map["2.18"]=272;
|
||||
version_map["2.19"]=274;
|
||||
version_map["2.19"]=275;
|
||||
|
||||
//
|
||||
// Normalize String
|
||||
|
||||
@@ -70,6 +70,7 @@ class MainObject : public QObject
|
||||
void Revert272() const;
|
||||
void Revert273() const;
|
||||
void Revert274() const;
|
||||
void Revert275() const;
|
||||
int GetVersion() const;
|
||||
void SetVersion(int schema) const;
|
||||
int MapSchema(const QString &ver);
|
||||
|
||||
Reference in New Issue
Block a user