mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-24 22:55:21 -04:00
New: Show previously installed version in Updates UI
Co-Authored-By: Taloth <Taloth@users.noreply.github.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user