Index: mythvideo/mythvideo/dbcheck.cpp
===================================================================
--- mythvideo/mythvideo/dbcheck.cpp	(revision 10421)
+++ mythvideo/mythvideo/dbcheck.cpp	(working copy)
@@ -8,7 +8,7 @@
 #include "mythtv/mythcontext.h"
 #include "mythtv/mythdbcon.h"
 
-const QString currentDatabaseVersion = "1008";
+const QString currentDatabaseVersion = "1009";
 
 static void UpdateDBVersionNumber(const QString &newnumber)
 {
@@ -215,5 +215,17 @@
 
         performActualUpdate(updates, "1008", dbver);
     }
+    if (dbver == "1008")
+    {
+        const QString updates[] = {
+"UPDATE videometadata "
+"LEFT JOIN videocategory ON (videometadata.category = videocategory.intid) "
+"SET videometadata.category = 0 "
+"WHERE videocategory.intid IS NULL;",
+""
+};
 
+        performActualUpdate(updates, "1009", dbver);
+    }
+
 }
