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