Ticket #2988: dbcheck.diff

File dbcheck.diff, 1.5 KB (added by xris, 15 years ago)

just need to verify that the code is clean and I'm doing things correctly.

  • libs/libmythtv/dbcheck.cpp

     
    28572857            return false;
    28582858    }
    28592859
     2860    if (dbver == "1177")
     2861    {
     2862        const QString updates[] = {
     2863"ALTER TABLE recorded       ADD INDEX (recgroup, endtime);",
     2864"ALTER TABLE recorded       ADD INDEX (deletepending, lastmodified);",
     2865"ALTER TABLE record         ADD INDEX (maxepisodes);",
     2866"ALTER TABLE storagegroup   ADD INDEX (hostname);",
     2867"ALTER TABLE channel        ADD INDEX (sourceid);",
     2868"ALTER TABLE mythlog        ADD INDEX (module);",
     2869"ALTER TABLE record         ADD INDEX (type);",
     2870"ALTER TABLE record         ADD INDEX (search);",
     2871"ALTER TABLE channel        ADD INDEX (visible);",
     2872"ALTER TABLE program        ADD INDEX (previouslyshown);",
     2873"ALTER TABLE inuseprograms  ADD INDEX (recusage, lastupdatetime);",
     2874"ALTER TABLE program        ADD INDEX (starttime);",
     2875"ALTER TABLE channel        DROP INDEX sourceid;",
     2876"ALTER TABLE channel        ADD INDEX (sourceid, xmltvid, chanid);",
     2877"ALTER TABLE program        DROP INDEX programid;",
     2878"ALTER TABLE program        ADD INDEX (programid,starttime);",
     2879"ALTER TABLE profilegroups  ADD INDEX (cardtype);",
     2880""
     2881};
     2882        if (!performActualUpdate(updates, "1178", dbver))
     2883            return false;
     2884    }
     2885
    28602886//"ALTER TABLE cardinput DROP COLUMN preference;" in 0.22
    28612887//"ALTER TABLE channel DROP COLUMN atscsrcid;" in 0.22
    28622888//"ALTER TABLE recordedmarkup DROP COLUMN offset;" in 0.22