From a6b499e4a5df1104273148dc56e85a193c6835eb Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 28 Jun 2022 18:31:13 -0500 Subject: [PATCH] Fixed: Correctly remove TorrentParadiseMl Fixes #1046 --- .../Datastore/Migration/017_indexer_cleanup.cs | 1 - .../Migration/020_remove_torrentparadiseml.cs | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/NzbDrone.Core/Datastore/Migration/020_remove_torrentparadiseml.cs diff --git a/src/NzbDrone.Core/Datastore/Migration/017_indexer_cleanup.cs b/src/NzbDrone.Core/Datastore/Migration/017_indexer_cleanup.cs index fefc24aeb..defd8eb5f 100644 --- a/src/NzbDrone.Core/Datastore/Migration/017_indexer_cleanup.cs +++ b/src/NzbDrone.Core/Datastore/Migration/017_indexer_cleanup.cs @@ -24,7 +24,6 @@ namespace NzbDrone.Core.Datastore.Migration Delete.FromTable("Indexers").Row(new { Implementation = "ThePirateBay" }); Delete.FromTable("Indexers").Row(new { Implementation = "TorrentLeech" }); Delete.FromTable("Indexers").Row(new { Implementation = "TorrentSeeds" }); - Delete.FromTable("Indexers").Row(new { Implementation = "TorrentParadiseMI" }); Delete.FromTable("Indexers").Row(new { Implementation = "YTS" }); //Change settings to shared classes diff --git a/src/NzbDrone.Core/Datastore/Migration/020_remove_torrentparadiseml.cs b/src/NzbDrone.Core/Datastore/Migration/020_remove_torrentparadiseml.cs new file mode 100644 index 000000000..662e7ecef --- /dev/null +++ b/src/NzbDrone.Core/Datastore/Migration/020_remove_torrentparadiseml.cs @@ -0,0 +1,15 @@ +using FluentMigrator; +using NzbDrone.Core.Datastore.Migration.Framework; + +namespace NzbDrone.Core.Datastore.Migration +{ + [Migration(020)] + public class remove_torrentparadiseml : NzbDroneMigrationBase + { + protected override void MainDbUpgrade() + { + // Remove, 017 incorrectly removes this using "TorrentParadiseMI" + Delete.FromTable("Indexers").Row(new { Implementation = "TorrentParadiseMl" }); + } + } +}