2018-05-07 Fred Gleason <fredg@paravelsystems.com>

* Added a 'USERS.WEBGET_LOGIN_PRIV' field to the database.
	* Incremented the database version to 277.
	* Added 'RDUser::webgetLogin()' and 'RDUser::setWebgetLogin()'
	methods.
	* Added a 'Allow WebGet Login' control in the 'Production Rights'
	section of the 'User' dialog in rdadmin(1).
This commit is contained in:
Fred Gleason
2018-05-08 16:04:53 +00:00
parent 7e437154ad
commit 082a42dd39
17 changed files with 102 additions and 10 deletions

View File

@@ -263,6 +263,10 @@ void MainObject::Revert(int schema) const
case 276:
Revert276();
break;
case 277:
Revert277();
break;
}
}
@@ -842,6 +846,19 @@ void MainObject::Revert276() const
}
void MainObject::Revert277() const
{
QString sql;
RDSqlQuery *q;
sql=QString("alter table USERS drop column WEBGET_LOGIN_PRIV");
q=new RDSqlQuery(sql,false);
delete q;
SetVersion(276);
}
int MainObject::GetVersion() const
{
QString sql;
@@ -888,7 +905,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;
version_map["2.20"]=277;
//
// Normalize String

View File

@@ -72,6 +72,7 @@ class MainObject : public QObject
void Revert274() const;
void Revert275() const;
void Revert276() const;
void Revert277() const;
int GetVersion() const;
void SetVersion(int schema) const;
int MapSchema(const QString &ver);