Skip to content

Commit

Permalink
Bump the database version to force regeneration of display labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
adenexter committed Nov 14, 2019
1 parent e744bab commit 9806c86
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/engine/contactsdatabase.cpp
Expand Up @@ -1308,6 +1308,10 @@ static const char *upgradeVersion18[] = {
"PRAGMA user_version=19",
0 // NULL-terminated
};
static const char *upgradeVersion19[] = {
"PRAGMA user_version=20",
0 // NULL-terminated
};

typedef bool (*UpgradeFunction)(QSqlDatabase &database);

Expand Down Expand Up @@ -1826,9 +1830,10 @@ static UpgradeOperation upgradeVersions[] = {
{ updateStorageTypes, upgradeVersion16 },
{ addDisplayLabelGroup, upgradeVersion17 },
{ forceRegenDisplayLabelGroups, upgradeVersion18 },
{ forceRegenDisplayLabelGroups, upgradeVersion19 },
};

static const int currentSchemaVersion = 19;
static const int currentSchemaVersion = 20;

static bool execute(QSqlDatabase &database, const QString &statement)
{
Expand Down

0 comments on commit 9806c86

Please sign in to comment.