New: Show previously installed version in Updates UI

Co-Authored-By: Taloth <Taloth@users.noreply.github.com>
This commit is contained in:
Qstick
2021-01-24 23:33:54 -05:00
parent e3a4cd8b19
commit 86eeb3cc57
19 changed files with 374 additions and 11 deletions
@@ -0,0 +1,24 @@
using System;
using System.Data;
using Dapper;
namespace NzbDrone.Core.Datastore.Converters
{
public class SystemVersionConverter : SqlMapper.TypeHandler<Version>
{
public override Version Parse(object value)
{
if (value is string version)
{
return Version.Parse((string)value);
}
return null;
}
public override void SetValue(IDbDataParameter parameter, Version value)
{
parameter.Value = value.ToString();
}
}
}