Fixed: Remove bad ratings from trakt

pull/6/head
Mark McDowall 10 years ago
parent f84b0c3e35
commit efbe052b26

@ -0,0 +1,20 @@
using FluentMigrator;
using NzbDrone.Core.Datastore.Migration.Framework;
namespace NzbDrone.Core.Datastore.Migration
{
[Migration(73)]
public class clear_ratings : NzbDroneMigrationBase
{
protected override void MainDbUpgrade()
{
Update.Table("Series")
.Set(new {Ratings = "{}"})
.AllRows();
Update.Table("Episodes")
.Set(new { Ratings = "{}" })
.AllRows();
}
}
}

@ -232,6 +232,7 @@
<Compile Include="Datastore\Migration\069_quality_proper.cs" />
<Compile Include="Datastore\Migration\071_unknown_quality_in_profile.cs" />
<Compile Include="Datastore\Migration\072_history_grabid.cs" />
<Compile Include="Datastore\Migration\073_clear_ratings.cs" />
<Compile Include="Datastore\Migration\070_delay_profile.cs" />
<Compile Include="Datastore\Migration\Framework\MigrationContext.cs" />
<Compile Include="Datastore\Migration\Framework\MigrationController.cs" />

Loading…
Cancel
Save