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.
Sonarr/src/NzbDrone.Core/Datastore/Migration/151_remove_custom_filter_ty...

17 lines
617 B

using FluentMigrator;
using NzbDrone.Core.Datastore.Migration.Framework;
namespace NzbDrone.Core.Datastore.Migration
{
[Migration(151)]
public class remove_custom_filter_type : NzbDroneMigrationBase
{
protected override void MainDbUpgrade()
{
Update.Table("CustomFilters").Set(new { Type = "series" }).Where(new { Type = "seriesIndex" });
Update.Table("CustomFilters").Set(new { Type = "series" }).Where(new { Type = "seriesEditor" });
Update.Table("CustomFilters").Set(new { Type = "series" }).Where(new { Type = "seasonPass" });
}
}
}