mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 02:07:41 +00:00
c5df00cc87
Fixed: unavailable nzbdrone service will no longer block series from being added.
19 lines
No EOL
650 B
C#
19 lines
No EOL
650 B
C#
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
|
|
)");
|
|
}
|
|
}
|
|
} |