mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
update db upgrade
This commit is contained in:
parent
373448675b
commit
986cdc429f
1 changed files with 9 additions and 2 deletions
|
@ -2974,10 +2974,17 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||
whereClauses.Add("LocationType not in (" + val + ")");
|
||||
}
|
||||
if (query.IsVirtualItem.HasValue)
|
||||
{
|
||||
if (_config.Configuration.SchemaVersion >= 90)
|
||||
{
|
||||
whereClauses.Add("IsVirtualItem=@IsVirtualItem");
|
||||
cmd.Parameters.Add(cmd, "@IsVirtualItem", DbType.Boolean).Value = query.IsVirtualItem.Value;
|
||||
}
|
||||
else if (!query.IsVirtualItem.Value)
|
||||
{
|
||||
whereClauses.Add("LocationType<>'Virtual'");
|
||||
}
|
||||
}
|
||||
if (query.MediaTypes.Length == 1)
|
||||
{
|
||||
whereClauses.Add("MediaType=@MediaTypes");
|
||||
|
|
Loading…
Reference in a new issue