From fec96dc3f0fe2377dd667d2bd2a212d03706cad5 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. (cherry picked from commit b18cd458e032184e23874d1d23e3e26b24040b11) --- 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 59834b273..47f58811d 100644 --- a/src/Lidarr.Api.V1/Tracks/TrackResource.cs +++ b/src/Lidarr.Api.V1/Tracks/TrackResource.cs @@ -26,7 +26,6 @@ namespace Lidarr.Api.V1.Tracks 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 @@ namespace Lidarr.Api.V1.Tracks 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 08bb83a86..3e33d7132 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 @@ namespace NzbDrone.Core.Datastore.Migration { protected override void MainDbUpgrade() { - Alter.Table("Tracks").AddColumn("IsSingleFileRelease").AsBoolean().WithDefaultValue(false); Alter.Table("TrackFiles").AddColumn("IsSingleFileRelease").AsBoolean().WithDefaultValue(false); } }