update db upgrade

This commit is contained in:
Luke Pulverenti 2016-07-03 19:54:19 -04:00
parent 373448675b
commit 986cdc429f

View File

@ -2975,8 +2975,15 @@ namespace MediaBrowser.Server.Implementations.Persistence
} }
if (query.IsVirtualItem.HasValue) if (query.IsVirtualItem.HasValue)
{ {
whereClauses.Add("IsVirtualItem=@IsVirtualItem"); if (_config.Configuration.SchemaVersion >= 90)
cmd.Parameters.Add(cmd, "@IsVirtualItem", DbType.Boolean).Value = query.IsVirtualItem.Value; {
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) if (query.MediaTypes.Length == 1)
{ {