mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07: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:
parent
ada0a3bfbc
commit
c5df00cc87
15 changed files with 222 additions and 360 deletions
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
|
||||
)");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue