update db upgrade
This commit is contained in:
parent
373448675b
commit
986cdc429f
|
@ -2975,8 +2975,15 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||
}
|
||||
if (query.IsVirtualItem.HasValue)
|
||||
{
|
||||
whereClauses.Add("IsVirtualItem=@IsVirtualItem");
|
||||
cmd.Parameters.Add(cmd, "@IsVirtualItem", DbType.Boolean).Value = query.IsVirtualItem.Value;
|
||||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user