Ticket #1064: dbcheck-real.patch

File dbcheck-real.patch, 977 bytes (added by brummett@…, 18 years ago)

This one actually changes it to 8 chars wide

  • libs/libmythtv/dbcheck.cpp

     
    1010#include "mythdbcon.h"
    1111
    1212/// This is the DB schema version expected by the running MythTV instance.
    13 const QString currentDatabaseVersion = "1121";
     13const QString currentDatabaseVersion = "1122";
    1414
    1515static bool UpdateDBVersionNumber(const QString &newnumber);
    1616static bool performActualUpdate(const QString updates[], QString version,
     
    19801980           return false;
    19811981   }
    19821982
     1983    if (dbver == "1121")
     1984    {
     1985        const QString updates[] = {
     1986"ALTER TABLE channel CHANGE channum channum VARCHAR(8) NOT NULL DEFAULT '';",
     1987""
     1988};
     1989        if (!performActualUpdate(updates, "1122", dbver))
     1990            return false;
     1991    }
     1992
    19831993// Drop xvmc_buffer_settings table in 0.20
    19841994// Drop dvb_dmx_buf_size and dvb_pkt_buf_size columns of channel in 0.20
    19851995