You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
614 B
23 lines
614 B
using FluentMigrator;
|
|
using Newtonsoft.Json.Linq;
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
{
|
|
[Migration(106)]
|
|
public class update_btn_url : NzbDroneMigrationBase
|
|
{
|
|
protected override void MainDbUpgrade()
|
|
{
|
|
Execute.Sql("UPDATE Indexers SET Settings = Replace(Settings, 'api.btnapps.net', 'api.broadcasthe.net') WHERE Implementation = 'BroadcastheNet';");
|
|
}
|
|
}
|
|
|
|
public class BroadcastheNetSettings106
|
|
{
|
|
public string BaseUrl { get; set; }
|
|
|
|
public string ApiKey { get; set; }
|
|
}
|
|
}
|