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

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

(cherry picked from commit 36524624

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