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:
Fred Gleason
2017-10-13 13:53:19 -04:00
parent 844be98df1
commit fdb5917f64
45 changed files with 1075 additions and 231 deletions

View File

@@ -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

View File

@@ -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);