Skip to content

Commit a5b13f4

Browse files
committed
Drop old MythNetvision tables
that haven't been used since 0.23. Including the update in the mythtv schema since, now that InternetContent support exists in core MythTV, there is no MythNetvision schema.
1 parent 68dec16 commit a5b13f4

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

mythtv/bindings/perl/MythTV.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ package MythTV;
114114
# schema version supported in the main code. We need to check that the schema
115115
# version in the database is as expected by the bindings, which are expected
116116
# to be kept in sync with the main code.
117-
our $SCHEMA_VERSION = "1289";
117+
our $SCHEMA_VERSION = "1290";
118118

119119
# NUMPROGRAMLINES is defined in mythtv/libs/libmythtv/programinfo.h and is
120120
# the number of items in a ProgramInfo QStringList group used by

mythtv/bindings/python/MythTV/static.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66

77
OWN_VERSION = (0,25,-1,3)
8-
SCHEMA_VERSION = 1289
8+
SCHEMA_VERSION = 1290
99
NVSCHEMA_VERSION = 1007
1010
MUSICSCHEMA_VERSION = 1018
1111
PROTO_VERSION = '70'

mythtv/libs/libmythbase/mythversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* MythTV Python Bindings
5252
* mythtv/bindings/python/MythTV/static.py
5353
*/
54-
#define MYTH_DATABASE_VERSION "1289"
54+
#define MYTH_DATABASE_VERSION "1290"
5555

5656

5757
MBASE_PUBLIC const char *GetMythSourceVersion();

mythtv/libs/libmythtv/dbcheck.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6032,6 +6032,22 @@ NULL
60326032
if (!performActualUpdate(updates, "1289", dbver))
60336033
return false;
60346034
}
6035+
6036+
if (dbver == "1289")
6037+
{
6038+
const char *updates[] = {
6039+
"DROP TABLE IF EXISTS netvisionrssitems;",
6040+
"DROP TABLE IF EXISTS netvisionsearchgrabbers;",
6041+
"DROP TABLE IF EXISTS netvisionsites;",
6042+
"DROP TABLE IF EXISTS netvisiontreegrabbers;",
6043+
"DROP TABLE IF EXISTS netvisiontreeitems;",
6044+
NULL
6045+
};
6046+
6047+
if (!performActualUpdate(updates, "1290", dbver))
6048+
return false;
6049+
}
6050+
60356051
return true;
60366052
}
60376053

0 commit comments

Comments
 (0)