mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-03 01:01:34 +02:00
Fixed: fixed an issue where season ignore check wasn't working correctly.
Fixed: unavailable nzbdrone service will no longer block series from being added.
This commit is contained in:
19
NzbDrone.Core/Datastore/Migrations/Migration20120227.cs
Normal file
19
NzbDrone.Core/Datastore/Migrations/Migration20120227.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Migrator.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migrations
|
||||
{
|
||||
|
||||
[Migration(20120227)]
|
||||
public class Migration20120227 : NzbDroneMigration
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Database.ExecuteNonQuery(@"DELETE FROM Seasons WHERE SeasonNumber NOT IN
|
||||
(
|
||||
SELECT DISTINCT SeasonNumber
|
||||
FROM Episodes
|
||||
WHERE Seasons.SeriesId = Episodes.SeriesId
|
||||
)");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user