2017-05-18 Fred Gleason <fredg@paravelsystems.com>

* Added pseudo-schema change 263 to restore missing LOG_MODES table
	records [GitHub issue #000175].
	* Added code to create and remove LOG_MODES table records when
	adding and removing Host definitions.
	* Incremented the database version to 263.
This commit is contained in:
Fred Gleason
2017-05-18 15:26:49 -04:00
parent 0134e46052
commit 1a94f58fff
8 changed files with 79 additions and 7 deletions

View File

@@ -206,6 +206,10 @@ void MainObject::Revert(int schema) const
case 262:
Revert262();
break;
case 263:
Revert263();
break;
}
}
@@ -592,6 +596,14 @@ void MainObject::Revert262() const
}
void MainObject::Revert263() const
{
// Nothing to do here as this is a pseudo-schema change.
SetVersion(262);
}
int MainObject::GetVersion() const
{
QString sql;
@@ -634,7 +646,7 @@ int MainObject::MapSchema(const QString &ver)
version_map["2.13"]=255;
version_map["2.14"]=258;
version_map["2.15"]=259;
version_map["2.16"]=262;
version_map["2.16"]=263;
//
// Normalize String

View File

@@ -58,6 +58,7 @@ class MainObject : public QObject
void Revert260() const;
void Revert261() const;
void Revert262() const;
void Revert263() const;
int GetVersion() const;
void SetVersion(int schema) const;
int MapSchema(const QString &ver);