1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-29 19:35:25 +00:00

Fixed: Remove bad ratings from trakt

This commit is contained in:
Mark McDowall 2014-12-30 15:39:57 -08:00
parent f84b0c3e35
commit efbe052b26
2 changed files with 21 additions and 0 deletions

View file

@ -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();
}
}
}

View file

@ -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" />