mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
2017-10-13 Fred Gleason <fredg@paravelsystems.com>
* Added a 'GROUPS.DEFAULT_CUT_LIFE' field to the database. * Incremented the database version to 269. * Added 'RDGroup::defaultCutLife()' and 'RDGroup::setDefaultCutLife()' methods. * Added a 'Set End Date/Time' control to the 'Edit Group' dialog in RDAdmin(1).
This commit is contained in:
@@ -231,6 +231,10 @@ void MainObject::Revert(int schema) const
|
||||
case 268:
|
||||
Revert268();
|
||||
break;
|
||||
|
||||
case 269:
|
||||
Revert269();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -689,6 +693,19 @@ void MainObject::Revert268() const
|
||||
}
|
||||
|
||||
|
||||
void MainObject::Revert269() const
|
||||
{
|
||||
QString sql;
|
||||
QSqlQuery *q;
|
||||
|
||||
sql="alter table GROUPS drop column DEFAULT_CUT_LIFE";
|
||||
q=new QSqlQuery(sql);
|
||||
delete q;
|
||||
|
||||
SetVersion(268);
|
||||
}
|
||||
|
||||
|
||||
int MainObject::GetVersion() const
|
||||
{
|
||||
QString sql;
|
||||
@@ -733,6 +750,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;
|
||||
|
||||
//
|
||||
// Normalize String
|
||||
|
@@ -64,6 +64,7 @@ class MainObject : public QObject
|
||||
void Revert266() const;
|
||||
void Revert267() const;
|
||||
void Revert268() const;
|
||||
void Revert269() const;
|
||||
int GetVersion() const;
|
||||
void SetVersion(int schema) const;
|
||||
int MapSchema(const QString &ver);
|
||||
|
Reference in New Issue
Block a user