mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 17:13:47 +02:00
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:
@@ -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
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user