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