From 6d23fb1b6126da61f882b46471937bc3fe82a348 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Tue, 3 Jan 2017 23:57:02 +0100 Subject: [PATCH] Fixes issue with History table not having a movie id field. --- src/NzbDrone.Core/Datastore/Migration/004_updated_history.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Datastore/Migration/004_updated_history.cs b/src/NzbDrone.Core/Datastore/Migration/004_updated_history.cs index 5ebc51ac8..e43924e77 100644 --- a/src/NzbDrone.Core/Datastore/Migration/004_updated_history.cs +++ b/src/NzbDrone.Core/Datastore/Migration/004_updated_history.cs @@ -17,7 +17,8 @@ namespace NzbDrone.Core.Datastore.Migration .WithColumn("SourceTitle").AsString() .WithColumn("Date").AsDateTime() .WithColumn("Quality").AsString() - .WithColumn("Data").AsString(); + .WithColumn("Data").AsString() + .WithColumn("MovieId").AsInt32().WithDefaultValue(0); } } }