mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 15:16:07 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user