mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Renamed some settings, added 2nd priority for sab
New: Separated priorities for new and old episodes when sent to SABnzbd
This commit is contained in:
parent
22dc51a52f
commit
eddbd4a97b
18 changed files with 150 additions and 54 deletions
22
NzbDrone.Core/Datastore/Migrations/Migration20121122.cs
Normal file
22
NzbDrone.Core/Datastore/Migrations/Migration20121122.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using System.Data;
|
||||
using Migrator.Framework;
|
||||
using NzbDrone.Common;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migrations
|
||||
{
|
||||
[Migration(20121122)]
|
||||
public class Migration20121122 : NzbDroneMigration
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Database.ExecuteNonQuery("UPDATE Config SET [KEY] = 'SabBacklogTvPriority' WHERE [KEY] = 'SabTvPriority'");
|
||||
Database.ExecuteNonQuery("UPDATE Config SET [KEY] = 'SabTvDropDirectory ' WHERE [KEY] = 'DownloadClientTvDirectory'");
|
||||
|
||||
var priority = Database.ExecuteScalar("SELECT [Value] FROM Config WHERE [Key] = 'SabBacklogTvPriority'");
|
||||
|
||||
if (priority != null)
|
||||
Database.ExecuteNonQuery("INSERT INTO Config ([Key], [Value]) VALUES('SabRecentTvPriority', '" + priority + "')");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue