From 9b5c5169ef1bc36350632b8974b8244c9a5fc75d Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Sun, 12 Feb 2017 16:33:36 +0100 Subject: [PATCH] fix pending release table. --- .../131_make_parsed_episode_info_nullable.cs | 19 +++++++++++++++++++ src/NzbDrone.Core/NzbDrone.Core.csproj | 1 + 2 files changed, 20 insertions(+) create mode 100644 src/NzbDrone.Core/Datastore/Migration/131_make_parsed_episode_info_nullable.cs diff --git a/src/NzbDrone.Core/Datastore/Migration/131_make_parsed_episode_info_nullable.cs b/src/NzbDrone.Core/Datastore/Migration/131_make_parsed_episode_info_nullable.cs new file mode 100644 index 000000000..ca4ab582e --- /dev/null +++ b/src/NzbDrone.Core/Datastore/Migration/131_make_parsed_episode_info_nullable.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using FluentMigrator; +using NzbDrone.Core.Datastore.Migration.Framework; +using System.Data; + +namespace NzbDrone.Core.Datastore.Migration +{ + [Migration(131)] + public class make_parsed_episode_info_nullable : NzbDroneMigrationBase + { + protected override void MainDbUpgrade() + { + Alter.Table("PendingReleases").AlterColumn("ParsedEpisodeInfo").AsString().Nullable(); + } + } +} diff --git a/src/NzbDrone.Core/NzbDrone.Core.csproj b/src/NzbDrone.Core/NzbDrone.Core.csproj index 8f71869eb..e72140641 100644 --- a/src/NzbDrone.Core/NzbDrone.Core.csproj +++ b/src/NzbDrone.Core/NzbDrone.Core.csproj @@ -1229,6 +1229,7 @@ +