From b18cd458e032184e23874d1d23e3e26b24040b11 Mon Sep 17 00:00:00 2001 From: zhangdoa Date: Sun, 7 Jan 2024 16:08:29 +0100 Subject: [PATCH] Remove "Is Single File Release" property from the track resource class and the database table. --- src/Lidarr.Api.V1/Tracks/TrackResource.cs | 2 -- src/NzbDrone.Core/Datastore/Migration/076_add_flac_cue.cs | 1 - 2 files changed, 3 deletions(-) diff --git a/src/Lidarr.Api.V1/Tracks/TrackResource.cs b/src/Lidarr.Api.V1/Tracks/TrackResource.cs index 59834b2737..47f58811d6 100644 --- a/src/Lidarr.Api.V1/Tracks/TrackResource.cs +++ b/src/Lidarr.Api.V1/Tracks/TrackResource.cs @@ -26,7 +26,6 @@ public class TrackResource : RestResource public ArtistResource Artist { get; set; } public Ratings Ratings { get; set; } - public bool IsSingleFileRelease { get; set; } // Hiding this so people don't think its usable (only used to set the initial state) [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] @@ -59,7 +58,6 @@ public static TrackResource ToResource(this Track model) MediumNumber = model.MediumNumber, HasFile = model.HasFile, Ratings = model.Ratings, - IsSingleFileRelease = model.IsSingleFileRelease }; } diff --git a/src/NzbDrone.Core/Datastore/Migration/076_add_flac_cue.cs b/src/NzbDrone.Core/Datastore/Migration/076_add_flac_cue.cs index 08bb83a862..3e33d71325 100644 --- a/src/NzbDrone.Core/Datastore/Migration/076_add_flac_cue.cs +++ b/src/NzbDrone.Core/Datastore/Migration/076_add_flac_cue.cs @@ -8,7 +8,6 @@ public class add_flac_cue : NzbDroneMigrationBase { protected override void MainDbUpgrade() { - Alter.Table("Tracks").AddColumn("IsSingleFileRelease").AsBoolean().WithDefaultValue(false); Alter.Table("TrackFiles").AddColumn("IsSingleFileRelease").AsBoolean().WithDefaultValue(false); } }