Skip to content
Permalink
Browse files

MythGame: Bump up several lengths in the romdb.

  • Loading branch information...
linuxdude42 committed Jul 11, 2018
1 parent 54db913 commit ec44073837cc4a339a75d88f071576c7c4a9b70b
Showing with 14 additions and 1 deletion.
  1. +14 −1 mythplugins/mythgame/mythgame/dbcheck.cpp
@@ -10,7 +10,7 @@ using namespace std;
#include "dbcheck.h"
#include "gamesettings.h"

const QString currentDatabaseVersion = "1018";
const QString currentDatabaseVersion = "1019";

static bool UpdateDBVersionNumber(const QString &newnumber)
{
@@ -437,5 +437,18 @@ QString("ALTER DATABASE %1 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;")
return false;
}

if (dbver == "1018")
{
const QString updates[] = {
"ALTER TABLE romdb MODIFY description varchar(192) CHARACTER SET utf8 NOT NULL default '';",
"ALTER TABLE romdb MODIFY binfile varchar(128) CHARACTER SET utf8 NOT NULL default '';",
"ALTER TABLE romdb MODIFY filesize int(12) unsigned default NULL;",
""
};

if (!performActualUpdate(updates, "1019", dbver))
return false;
}

return true;
}

0 comments on commit ec44073

Please sign in to comment.
You can’t perform that action at this time.