Commit 36524624 by Hugo Beauzée-Luyssen

MediaLibrary: Explicitely use Media::Unknown instead of the numerical value

parent 72f3a690
......@@ -890,8 +890,8 @@ bool MediaLibrary::migrateModel6to7()
{
// Delete already parsed files with unknown type from Media.
// It will force a rescan of playlist files.
std::string req = "DELETE FROM " + policy::MediaTable::Name + " WHERE type = 0";
sqlite::Tools::executeRequest( getConn(), req );
std::string req = "DELETE FROM " + policy::MediaTable::Name + " WHERE type = ?";
sqlite::Tools::executeRequest( getConn(), req, Media::Type::Unknown );
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment