Skip to content
Snippets Groups Projects
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: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 21aa2793
Branches 0.4.x
No related tags found
No related merge requests found
......@@ -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() };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment