Commit ed75aeff authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

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

(cherry picked from commit 36524624)
Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 21aa2793
......@@ -876,8 +876,8 @@ bool MediaLibrary::migrateModel5to6()
// Those are playlist which we wrongfully accepted
// This needs to be done outside of a weak context, as we want recursive
// triggers to fire
std::string req = "DELETE FROM " + policy::MediaTable::Name + " WHERE type = 0";
if ( sqlite::Tools::executeRequest( getConn(), req ) == false )
std::string req = "DELETE FROM " + policy::MediaTable::Name + " WHERE type = ?";
if ( sqlite::Tools::executeRequest( getConn(), req, Media::Type::Unknown ) == false )
return false;
sqlite::Connection::WeakDbContext weakConnCtx{ getConn() };
......
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