diff --git a/mythtv/libs/libmythbase/mythversion.h b/mythtv/libs/libmythbase/mythversion.h index b5c106d2b94..126d24625b5 100644 --- a/mythtv/libs/libmythbase/mythversion.h +++ b/mythtv/libs/libmythbase/mythversion.h @@ -51,7 +51,7 @@ * MythTV Python Bindings * mythtv/bindings/python/MythTV/static.py */ -#define MYTH_DATABASE_VERSION "1284" +#define MYTH_DATABASE_VERSION "1285" MBASE_PUBLIC const char *GetMythSourceVersion(); diff --git a/mythtv/libs/libmythtv/dbcheck.cpp b/mythtv/libs/libmythtv/dbcheck.cpp index 8e4e30807b3..b3d1afc3b5c 100644 --- a/mythtv/libs/libmythtv/dbcheck.cpp +++ b/mythtv/libs/libmythtv/dbcheck.cpp @@ -5911,6 +5911,18 @@ NULL return false; } + if (dbver == "1284") + { + const char *updates[] = { +"REPLACE INTO recordfilter (filterid, description, clause, newruledefault) " +" VALUES (6, 'This Episode', '(RECTABLE.programid <> '''' AND program.programid = RECTABLE.programid) OR (RECTABLE.programid = '''' AND program.subtitle = RECTABLE.subtitle AND program.description = RECTABLE.description)', 0);", +NULL +}; + + if (!performActualUpdate(updates, "1285", dbver)) + return false; + } + return true; }