changed: use specialised dropIndex function call for dropping indexes.
authorfirnsy <firnsy@securixlive.com>
Mon, 2 May 2011 12:50:59 +0000 (22:50 +1000)
committerfirnsy <firnsy@securixlive.com>
Wed, 4 May 2011 10:53:08 +0000 (20:53 +1000)
xbmc/video/VideoDatabase.cpp

index aff8997..1cd42ba 100644 (file)
@@ -3445,10 +3445,10 @@ bool CVideoDatabase::UpdateOldVersion(int iVersion)
       m_pDS->exec("ALTER table episode add c23 text");
       m_pDS->exec("ALTER table musicvideo add c23 text");
       m_pDS->exec("ALTER table tvshow add c23 text");
-      m_pDS->exec("DROP INDEX ixMovieBasePath ON movie");
-      m_pDS->exec("DROP INDEX ixMusicVideoBasePath ON musicvideo");
-      m_pDS->exec("DROP INDEX ixEpisodeBasePath ON episode");
-      m_pDS->exec("DROP INDEX ixTVShowBasePath ON tvshow");
+      m_pDS->dropIndex("movie", "ixMovieBasePath");
+      m_pDS->dropIndex("musicvideo", "ixMusicVideoBasePath");
+      m_pDS->dropIndex("episode", "ixEpisodeBasePath");
+      m_pDS->dropIndex("tvshow", "ixTVShowBasePath");
       m_pDS->exec("CREATE INDEX ixMovieBasePath ON movie ( c23(12) )");
       m_pDS->exec("CREATE INDEX ixMusicVideoBasePath ON musicvideo ( c14(12) )");
       m_pDS->exec("CREATE INDEX ixEpisodeBasePath ON episode ( c19(12) )");