Skip to content
Browse files

Increase size of channel.xmltvid.

Some xmltvids are larger than 64 characters, due to strange encodings
used by some listings providers.  Change the xmltvid to be up to 255
characters, which should handle any xmltvid that may ever be created.
Thanks to Karl Dietz for the information on XMLTV design and the
suggestion to use 255 characters.
  • Loading branch information...
1 parent b68c614 commit ffbae3f69da9056a9b38d4b53be52586fe6274dc @sphery sphery committed Jan 27, 2011
Showing with 13 additions and 3 deletions.
  1. +1 −1 mythtv/bindings/perl/MythTV.pm
  2. +1 −1 mythtv/bindings/python/MythTV/static.py
  3. +11 −1 mythtv/libs/libmythtv/dbcheck.cpp
View
2 mythtv/bindings/perl/MythTV.pm
@@ -114,7 +114,7 @@ package MythTV;
# schema version supported in the main code. We need to check that the schema
# version in the database is as expected by the bindings, which are expected
# to be kept in sync with the main code.
- our $SCHEMA_VERSION = "1267";
+ our $SCHEMA_VERSION = "1268";
# NUMPROGRAMLINES is defined in mythtv/libs/libmythtv/programinfo.h and is
# the number of items in a ProgramInfo QStringList group used by
View
2 mythtv/bindings/python/MythTV/static.py
@@ -5,7 +5,7 @@
"""
OWN_VERSION = (0,25,-1,1)
-SCHEMA_VERSION = 1267
+SCHEMA_VERSION = 1268
NVSCHEMA_VERSION = 1007
MUSICSCHEMA_VERSION = 1018
PROTO_VERSION = '64'
View
12 mythtv/libs/libmythtv/dbcheck.cpp
@@ -21,7 +21,7 @@ using namespace std;
mythtv/bindings/perl/MythTV.pm
*/
/// This is the DB schema version expected by the running MythTV instance.
-const QString currentDatabaseVersion = "1267";
+const QString currentDatabaseVersion = "1268";
static bool UpdateDBVersionNumber(const QString &newnumber, QString &dbver);
static bool performActualUpdate(
@@ -5562,6 +5562,16 @@ NULL
return false;
}
+ if (dbver == "1267")
+ {
+ const char *updates[] = {
+"ALTER TABLE channel MODIFY xmltvid VARCHAR(255) NOT NULL DEFAULT '';",
+NULL
+};
+ if (!performActualUpdate(updates, "1268", dbver))
+ return false;
+ }
+
return true;
}

0 comments on commit ffbae3f

Please sign in to comment.
Something went wrong with that request. Please try again.