Skip to content

Commit 860b32b

Browse files
author
Robert McNamara
committed
Complete DB fix from 4f549f7.
Does not alter existing behavior, nor could this conceivably introduce bugs to existing code, nor is this a new feature, merely the completion of some work from earlier.
1 parent feb3a94 commit 860b32b

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
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 = "1297";
117+
our $SCHEMA_VERSION = "1298";
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 = 1297
8+
SCHEMA_VERSION = 1298
99
NVSCHEMA_VERSION = 1007
1010
MUSICSCHEMA_VERSION = 1018
1111
PROTO_VERSION = '72'

mythtv/libs/libmythbase/mythversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
* MythTV PHP Bindings
5555
* mythtv/bindings/php/MythBackend.php
5656
*/
57-
#define MYTH_DATABASE_VERSION "1297"
57+
#define MYTH_DATABASE_VERSION "1298"
5858

5959

6060
MBASE_PUBLIC const char *GetMythSourceVersion();

mythtv/libs/libmythmetadata/videometadata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ void VideoMetadataImp::Reset()
480480
VIDEO_COVERFILE_DEFAULT, VIDEO_SCREENSHOT_DEFAULT, VIDEO_BANNER_DEFAULT,
481481
VIDEO_FANART_DEFAULT, VideoMetadata::FilenameToMeta(m_filename, 1), QString(),
482482
VideoMetadata::FilenameToMeta(m_filename, 4), VIDEO_YEAR_DEFAULT,
483-
QDate(), VIDEO_INETREF_DEFAULT, 0, QString(), VIDEO_DIRECTOR_DEFAULT,
483+
QDate(), VIDEO_INETREF_DEFAULT, -1, QString(), VIDEO_DIRECTOR_DEFAULT,
484484
QString(), VIDEO_PLOT_DEFAULT, 0.0,
485485
VIDEO_RATING_DEFAULT, 0, 0,
486486
VideoMetadata::FilenameToMeta(m_filename, 2).toInt(),

mythtv/libs/libmythtv/dbcheck.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6245,6 +6245,19 @@ NULL
62456245
return false;
62466246
}
62476247

6248+
if (dbver == "1297")
6249+
{
6250+
const char *updates[] = {
6251+
"ALTER TABLE videometadata CHANGE collectionref collectionref INT(10) "
6252+
"NOT NULL DEFAULT -1",
6253+
"UPDATE videometadata SET collectionref = '-1'",
6254+
NULL
6255+
};
6256+
6257+
if (!performActualUpdate(updates, "1298", dbver))
6258+
return false;
6259+
}
6260+
62486261
return true;
62496262
}
62506263

0 commit comments

Comments
 (0)