From 23bd9440b3a2b8c9d0bdeb83cd1cd0d41143f637 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Mon, 20 Jul 2015 20:05:12 +0200 Subject: [PATCH] Removed duplicate file. --- .../087_add_on_rename_to_notifcations.cs | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/NzbDrone.Core/Datastore/Migration/087_add_on_rename_to_notifcations.cs diff --git a/src/NzbDrone.Core/Datastore/Migration/087_add_on_rename_to_notifcations.cs b/src/NzbDrone.Core/Datastore/Migration/087_add_on_rename_to_notifcations.cs deleted file mode 100644 index 544a7cdc8..000000000 --- a/src/NzbDrone.Core/Datastore/Migration/087_add_on_rename_to_notifcations.cs +++ /dev/null @@ -1,21 +0,0 @@ -using FluentMigrator; -using NzbDrone.Core.Datastore.Migration.Framework; - -namespace NzbDrone.Core.Datastore.Migration -{ - [Migration(87)] - public class add_on_rename_to_notifcations : NzbDroneMigrationBase - { - protected override void MainDbUpgrade() - { - Alter.Table("Notifications").AddColumn("OnRename").AsBoolean().Nullable(); - - Execute.Sql("UPDATE Notifications SET OnRename = OnDownload WHERE Implementation IN ('PlexServer', 'Xbmc', 'MediaBrowser')"); - Execute.Sql("UPDATE Notifications SET OnRename = 0 WHERE Implementation NOT IN ('PlexServer', 'Xbmc', 'MediaBrowser')"); - - Alter.Table("Notifications").AlterColumn("OnRename").AsBoolean().NotNullable(); - - Execute.Sql("UPDATE Notifications SET OnGrab = 0 WHERE Implementation = 'PlexServer'"); - } - } -}