From 960330a004aa38105de48b6d8624ea8683359d5a Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 18 Jan 2018 00:08:52 -0500 Subject: [PATCH] Fixed: Albums not loading after 0.2.0.233 --- .../Migration/010_album_releases_fix.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/NzbDrone.Core/Datastore/Migration/010_album_releases_fix.cs diff --git a/src/NzbDrone.Core/Datastore/Migration/010_album_releases_fix.cs b/src/NzbDrone.Core/Datastore/Migration/010_album_releases_fix.cs new file mode 100644 index 000000000..0ca24efaa --- /dev/null +++ b/src/NzbDrone.Core/Datastore/Migration/010_album_releases_fix.cs @@ -0,0 +1,17 @@ +using FluentMigrator; +using NzbDrone.Core.Datastore.Migration.Framework; + +namespace NzbDrone.Core.Datastore.Migration +{ + [Migration(10)] + public class album_releases_fix : NzbDroneMigrationBase + { + protected override void MainDbUpgrade() + { + Delete.Column("Releases").FromTable("Albums"); + Delete.Column("CurrentRelease").FromTable("Albums"); + Alter.Table("Albums").AddColumn("Releases").AsString().WithDefaultValue("[]").NotNullable(); + Alter.Table("Albums").AddColumn("CurrentRelease").AsString().WithDefaultValue("").NotNullable(); + } + } +}