2017-07-14 Fred Gleason <fredg@paravelsystems.com>

* Added a 'SYSTEM.SHOW_USER_LIST' field to the database.
	* Incremented the database version to 265.
	* Added 'RDSystem::showUserList()' and 'RDSystem::setShowUserList()'
	methods in 'lib/rdsystem.cpp' and 'lib/rdsystem.h'.
	* Added a 'Show User List in RDLogin' control to the 'Edit System'
	dialog in 'rdadmin/edit_settings.cpp' and 'rdadmin/edit_settings.h'.
	* Altered RDLogin to display a text  input field for the user name
	when 'Show User List in RDLogin' is unchecked.
This commit is contained in:
Fred Gleason
2017-07-14 12:25:21 -04:00
parent 4d6187bb61
commit b2c6f3b9ac
26 changed files with 194 additions and 14 deletions

View File

@@ -210,6 +210,14 @@ void MainObject::Revert(int schema) const
case 263:
Revert263();
break;
case 264:
Revert264();
break;
case 265:
Revert265();
break;
}
}
@@ -604,6 +612,32 @@ void MainObject::Revert263() const
}
void MainObject::Revert264() const
{
QString sql;
QSqlQuery *q;
sql="alter table SYSTEM drop column FIX_DUP_CART_TITLES";
q=new QSqlQuery(sql);
delete q;
SetVersion(263);
}
void MainObject::Revert265() const
{
QString sql;
QSqlQuery *q;
sql="alter table SYSTEM drop column SHOW_USER_LIST";
q=new QSqlQuery(sql);
delete q;
SetVersion(264);
}
int MainObject::GetVersion() const
{
QString sql;
@@ -647,6 +681,7 @@ int MainObject::MapSchema(const QString &ver)
version_map["2.14"]=258;
version_map["2.15"]=259;
version_map["2.16"]=263;
version_map["2.17"]=266;
//
// Normalize String

View File

@@ -59,6 +59,8 @@ class MainObject : public QObject
void Revert261() const;
void Revert262() const;
void Revert263() const;
void Revert264() const;
void Revert265() const;
int GetVersion() const;
void SetVersion(int schema) const;
int MapSchema(const QString &ver);