Ticket #1064: dbcheck-real.patch
File dbcheck-real.patch, 977 bytes (added by , 18 years ago) |
---|
-
libs/libmythtv/dbcheck.cpp
10 10 #include "mythdbcon.h" 11 11 12 12 /// This is the DB schema version expected by the running MythTV instance. 13 const QString currentDatabaseVersion = "112 1";13 const QString currentDatabaseVersion = "1122"; 14 14 15 15 static bool UpdateDBVersionNumber(const QString &newnumber); 16 16 static bool performActualUpdate(const QString updates[], QString version, … … 1980 1980 return false; 1981 1981 } 1982 1982 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 1983 1993 // Drop xvmc_buffer_settings table in 0.20 1984 1994 // Drop dvb_dmx_buf_size and dvb_pkt_buf_size columns of channel in 0.20 1985 1995