2017-11-28 Fred Gleason <fredg@paravelsystems.com>

* Added a 'USER_SERVICE_PERMS' table to the database.
	* Incremented the database version to 272.
	* Added a 'Service Permissions' button to the Edit User dialog in
	rdadmin(1).
This commit is contained in:
Fred Gleason
2017-11-28 09:01:42 -05:00
parent 29e625c7f5
commit d55a3b9115
44 changed files with 777 additions and 327 deletions

View File

@@ -243,6 +243,10 @@ void MainObject::Revert(int schema) const
case 271:
Revert271();
break;
case 272:
Revert272();
break;
}
}
@@ -739,6 +743,18 @@ void MainObject::Revert271() const
}
void MainObject::Revert272() const
{
QString sql;
QSqlQuery *q;
sql=QString("drop table USER_SERVICE_PERMS");
q=new QSqlQuery(sql);
delete q;
SetVersion(271);
}
int MainObject::GetVersion() const
{
QString sql;
@@ -783,7 +799,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"]=271;
version_map["2.18"]=272;
//
// Normalize String

View File

@@ -67,6 +67,7 @@ class MainObject : public QObject
void Revert269() const;
void Revert270() const;
void Revert271() const;
void Revert272() const;
int GetVersion() const;
void SetVersion(int schema) const;
int MapSchema(const QString &ver);