mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Removed duplicate file.
This commit is contained in:
parent
0f2bba0615
commit
23bd9440b3
1 changed files with 0 additions and 21 deletions
|
@ -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'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue