2017-09-01 Fred Gleason <fredg@paravelsystems.com>

* Added 'CUTS.ORIGIN_LOGIN_NAME' and 'CUTS.SOURCE_HOSTNAME' fields to
	the database.
	* Incremented the database version to 267.
	* Added 'RDCut::originLoginName()', 'RDCut::setOriginLoginName()',
	'RDCut::sourceHostname()' and 'RDCut::setSourceHostname()' methods
	in 'lib/rdcut.cpp' and 'lib/rdcut.h'.
	* Added '<originLoginName>' and '<sourceHostname>' tags to the cut
	XML schema in 'RDCart::xmlSql()' and 'RDCut::xml()' methods.
	* Refactored the layout of the 'Cut Info/Record' dialog in RDLibrary.
	* Added a 'Source Host' control to the 'Cut Info/Record' dialog
	in RDLibrary.
This commit is contained in:
Fred Gleason
2017-09-01 09:34:25 -04:00
parent aef7c2229b
commit 796164403c
18 changed files with 373 additions and 162 deletions

View File

@@ -223,6 +223,10 @@ void MainObject::Revert(int schema) const
case 266:
Revert266();
break;
case 267:
Revert267();
break;
}
}
@@ -651,6 +655,23 @@ void MainObject::Revert266() const
}
void MainObject::Revert267() const
{
QString sql;
QSqlQuery *q;
sql="alter table CUTS drop column ORIGIN_LOGIN_NAME";
q=new QSqlQuery(sql);
delete q;
sql="alter table CUTS drop column SOURCE_HOSTNAME";
q=new QSqlQuery(sql);
delete q;
SetVersion(266);
}
int MainObject::GetVersion() const
{
QString sql;
@@ -694,7 +715,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;
version_map["2.17"]=267;
//
// Normalize String

View File

@@ -62,6 +62,7 @@ class MainObject : public QObject
void Revert264() const;
void Revert265() const;
void Revert266() const;
void Revert267() const;
int GetVersion() const;
void SetVersion(int schema) const;
int MapSchema(const QString &ver);