mirror of
https://github.com/Radarr/Radarr
synced 2026-05-09 11:10:23 +02:00
Remove RetroApplyTags from multiple tables
Removed the RetroApplyTags field from ProviderDefinition, Notifications, Indexers, DownloadClients, and relevant API resources. RetroApplyTags is now exclusively managed within ImportListDefinition.
This commit is contained in:
parent
5f9c52d790
commit
8730c26de0
4 changed files with 2 additions and 7 deletions
|
|
@ -9,8 +9,5 @@ public class add_retroapply_to_importlists : NzbDroneMigrationBase
|
|||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Alter.Table("ImportLists").AddColumn("RetroApplyTags").AsBoolean().WithDefaultValue(false);
|
||||
Alter.Table("Notifications").AddColumn("RetroApplyTags").AsBoolean().WithDefaultValue(false);
|
||||
Alter.Table("Indexers").AddColumn("RetroApplyTags").AsBoolean().WithDefaultValue(false);
|
||||
Alter.Table("DownloadClients").AddColumn("RetroApplyTags").AsBoolean().WithDefaultValue(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ public class ImportListDefinition : ProviderDefinition, IEquatable<ImportListDef
|
|||
public int QualityProfileId { get; set; }
|
||||
public string RootFolderPath { get; set; }
|
||||
public bool SearchOnAdd { get; set; }
|
||||
public bool RetroApplyTags { get; set; }
|
||||
|
||||
[MemberwiseEqualityIgnore]
|
||||
public override bool Enable => Enabled;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ protected ProviderDefinition()
|
|||
public ProviderMessage Message { get; set; }
|
||||
|
||||
public HashSet<int> Tags { get; set; }
|
||||
public bool RetroApplyTags { get; set; }
|
||||
|
||||
[MemberwiseEqualityIgnore]
|
||||
public IProviderConfig Settings
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ public virtual TProviderResource ToResource(TProviderDefinition definition)
|
|||
ConfigContract = definition.ConfigContract,
|
||||
Message = definition.Message,
|
||||
Tags = definition.Tags,
|
||||
RetroApplyTags = definition.RetroApplyTags,
|
||||
Fields = SchemaBuilder.ToSchema(definition.Settings),
|
||||
|
||||
// radarr/supported is an disambiguation page. the # should be a header on the page with appropriate details/link
|
||||
|
|
@ -62,8 +61,7 @@ public virtual TProviderDefinition ToModel(TProviderResource resource, TProvider
|
|||
Implementation = resource.Implementation,
|
||||
ConfigContract = resource.ConfigContract,
|
||||
Message = resource.Message,
|
||||
Tags = resource.Tags,
|
||||
RetroApplyTags = resource.RetroApplyTags,
|
||||
Tags = resource.Tags
|
||||
};
|
||||
|
||||
var configContract = ReflectionExtensions.CoreAssembly.FindTypeByName(definition.ConfigContract);
|
||||
|
|
|
|||
Loading…
Reference in a new issue