mirror of https://github.com/Radarr/Radarr
Fixed omgwtfnzbs issues with null settings
Fixed: omgwtfnzbs settings issue
This commit is contained in:
parent
25c5401a9d
commit
ddf83230f3
|
@ -0,0 +1,24 @@
|
|||
using FluentMigrator;
|
||||
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migration
|
||||
{
|
||||
[Migration(27)]
|
||||
public class fix_omgwtfnzbs : NzbDroneMigrationBase
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Update.Table("Indexers")
|
||||
.Set(new {ConfigContract = "OmgwtfnzbsSettings"})
|
||||
.Where(new {Implementation = "Omgwtfnzbs"});
|
||||
|
||||
Update.Table("Indexers")
|
||||
.Set(new {Settings = "{}"})
|
||||
.Where(new {Implementation = "Omgwtfnzbs", Settings = (string) null});
|
||||
|
||||
Update.Table("Indexers")
|
||||
.Set(new { Settings = "{}" })
|
||||
.Where(new { Implementation = "Omgwtfnzbs", Settings = "" });
|
||||
}
|
||||
}
|
||||
}
|
|
@ -178,6 +178,9 @@
|
|||
<Compile Include="Datastore\Migration\024_drop_tvdb_episodeid.cs" />
|
||||
<Compile Include="Datastore\Migration\026_add_config_contract_to_notifications.cs" />
|
||||
<Compile Include="Datastore\Migration\025_move_notification_to_generic_provider.cs" />
|
||||
<Compile Include="Datastore\Migration\027_fix_omgwtfnzbs.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Datastore\Migration\Framework\MigrationContext.cs" />
|
||||
<Compile Include="Datastore\Migration\Framework\MigrationController.cs" />
|
||||
<Compile Include="Datastore\Migration\Framework\MigrationExtension.cs" />
|
||||
|
|
Loading…
Reference in New Issue