Skip to content

Commit

Permalink
MythGame: Bump up several lengths in the romdb.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Aug 1, 2018
1 parent 54db913 commit ec44073
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion mythplugins/mythgame/mythgame/dbcheck.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using namespace std;
#include "dbcheck.h" #include "dbcheck.h"
#include "gamesettings.h" #include "gamesettings.h"


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


static bool UpdateDBVersionNumber(const QString &newnumber) static bool UpdateDBVersionNumber(const QString &newnumber)
{ {
Expand Down Expand Up @@ -437,5 +437,18 @@ QString("ALTER DATABASE %1 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;")
return false; 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; return true;
} }

0 comments on commit ec44073

Please sign in to comment.