diff --git a/mythtv/bindings/perl/MythTV.pm b/mythtv/bindings/perl/MythTV.pm index 93ce207ae1e..8ed7c6582c5 100644 --- a/mythtv/bindings/perl/MythTV.pm +++ b/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 = "1300"; + our $SCHEMA_VERSION = "1301"; # NUMPROGRAMLINES is defined in mythtv/libs/libmythtv/programinfo.h and is # the number of items in a ProgramInfo QStringList group used by diff --git a/mythtv/bindings/python/MythTV/static.py b/mythtv/bindings/python/MythTV/static.py index 504f5a117fb..ed7dcd2d4d4 100644 --- a/mythtv/bindings/python/MythTV/static.py +++ b/mythtv/bindings/python/MythTV/static.py @@ -5,7 +5,7 @@ """ OWN_VERSION = (0,25,-1,3) -SCHEMA_VERSION = 1300 +SCHEMA_VERSION = 1301 NVSCHEMA_VERSION = 1007 MUSICSCHEMA_VERSION = 1018 PROTO_VERSION = '73' diff --git a/mythtv/libs/libmythbase/mythversion.h b/mythtv/libs/libmythbase/mythversion.h index da78bf18c6d..5f31c1b1d52 100644 --- a/mythtv/libs/libmythbase/mythversion.h +++ b/mythtv/libs/libmythbase/mythversion.h @@ -57,7 +57,7 @@ * mythtv/bindings/php/MythBackend.php #endif -#define MYTH_DATABASE_VERSION "1300" +#define MYTH_DATABASE_VERSION "1301" MBASE_PUBLIC const char *GetMythSourceVersion(); diff --git a/mythtv/libs/libmythtv/dbcheck.cpp b/mythtv/libs/libmythtv/dbcheck.cpp index eb4e5509c92..6d75e472d4a 100644 --- a/mythtv/libs/libmythtv/dbcheck.cpp +++ b/mythtv/libs/libmythtv/dbcheck.cpp @@ -1960,6 +1960,28 @@ NULL return false; } + if (dbver == "1300") + { + const char *updates[] = { +"ALTER TABLE channel ADD COLUMN iptvid SMALLINT(6) UNSIGNED;", +"CREATE TABLE iptv_channel (" +" iptvid SMALLINT(6) UNSIGNED NOT NULL auto_increment," +" chanid INT(10) UNSIGNED NOT NULL," +" url TEXT NOT NULL," +" type set('data', " +" 'rfc2733-1','rfc2733-2', " +" 'rfc5109-1','rfc5109-2', " +" 'smpte2022-1','smpte2022-2')," +" bitrate INT(10) UNSIGNED NOT NULL," +" PRIMARY KEY (iptvid)" +") ENGINE=MyISAM DEFAULT CHARSET=utf8;", +NULL +}; + + if (!performActualUpdate(updates, "1301", dbver)) + return false; + } + return true; }