Permalink
Browse files

add inetref to programs

  • Loading branch information...
1 parent 4df5406 commit 0b75d2d34ee0346560f505f8f991328800c44de8 @dekarl dekarl committed Jan 7, 2014
@@ -115,7 +115,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 = "1322";
+ our $SCHEMA_VERSION = "1323";
# NUMPROGRAMLINES is defined in mythtv/libs/libmythtv/programinfo.h and is
# the number of items in a ProgramInfo QStringList group used by
@@ -5,7 +5,7 @@
"""
OWN_VERSION = (0,28,-1,0)
-SCHEMA_VERSION = 1322
+SCHEMA_VERSION = 1323
NVSCHEMA_VERSION = 1007
MUSICSCHEMA_VERSION = 1018
PROTO_VERSION = '79'
@@ -61,7 +61,7 @@
* mythtv/bindings/php/MythBackend.php
#endif
-#define MYTH_DATABASE_VERSION "1322"
+#define MYTH_DATABASE_VERSION "1323"
MBASE_PUBLIC const char *GetMythSourceVersion();
@@ -2637,6 +2637,20 @@ NULL
return false;
}
+ if (dbver == "1322")
+ {
+ const char *updates[] = {
+ // add inetref to (recorded)program before season/episode
+ "ALTER TABLE program "
+ " ADD COLUMN inetref varchar(40) DEFAULT '' AFTER videoprop;",
+ "ALTER TABLE recordedprogram "
+ " ADD COLUMN inetref varchar(40) DEFAULT '' AFTER videoprop;",
+ NULL
+ };
+ if (!performActualUpdate(updates, "1323", dbver))
+ return false;
+ }
+
return true;
}

0 comments on commit 0b75d2d

Please sign in to comment.