mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 17:57:43 +00:00
Fixed: Remove bad ratings from trakt
This commit is contained in:
parent
f84b0c3e35
commit
efbe052b26
2 changed files with 21 additions and 0 deletions
20
src/NzbDrone.Core/Datastore/Migration/073_clear_ratings.cs
Normal file
20
src/NzbDrone.Core/Datastore/Migration/073_clear_ratings.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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…
Reference in a new issue