Permalink
Browse files

Add index to rating table

  • Loading branch information...
phate89 committed Jun 4, 2016
1 parent 2250c2e commit 3719f40157fcb4323aed08eb51882e6e91b4d3a6
Showing with 3 additions and 1 deletion.
  1. +3 −1 xbmc/video/VideoDatabase.cpp
@@ -269,6 +269,8 @@ void CVideoDatabase::CreateAnalytics()
m_pDS->exec("CREATE INDEX ix_seasons ON seasons (idShow, season)");
m_pDS->exec("CREATE INDEX ix_art ON art(media_id, media_type(20), type(20))");

m_pDS->exec("CREATE INDEX ix_rating ON rating(media_id, media_type(20))");

CreateLinkIndex("tag");
CreateLinkIndex("actor");
CreateForeignLinkIndex("director", "actor");
@@ -4970,7 +4972,7 @@ void CVideoDatabase::UpdateTables(int iVersion)

int CVideoDatabase::GetSchemaVersion() const
{
return 105;
return 106;
}

bool CVideoDatabase::LookupByFolders(const std::string &path, bool shows)

0 comments on commit 3719f40

Please sign in to comment.