Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Multiply album ratings
  • Loading branch information
razzeee committed Dec 19, 2015
1 parent 8221170 commit 1130930
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xbmc/music/MusicDatabase.cpp
Expand Up @@ -4407,11 +4407,15 @@ void CMusicDatabase::UpdateTables(int version)
m_pDS->exec("ALTER TABLE album ADD iVotes INTEGER NOT NULL DEFAULT 0");
m_pDS->exec("ALTER TABLE song ADD votes INTEGER NOT NULL DEFAULT 0");
}
if (version < 58)
{
m_pDS->exec("UPDATE album SET fRating = fRating * 2");
}
}

int CMusicDatabase::GetSchemaVersion() const
{
return 57;
return 58;
}

unsigned int CMusicDatabase::GetSongIDs(const Filter &filter, std::vector<std::pair<int,int> > &songIDs)
Expand Down

0 comments on commit 1130930

Please sign in to comment.