mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
SeasonProvider Added to handle ignoring of Seasons.
This commit is contained in:
parent
d27f14d7aa
commit
969f8ae5e2
10 changed files with 265 additions and 186 deletions
22
NzbDrone.Core/Datastore/Migrations/Migration20120220.cs
Normal file
22
NzbDrone.Core/Datastore/Migrations/Migration20120220.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using System.Data;
|
||||
using Migrator.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migrations
|
||||
{
|
||||
|
||||
[Migration(20120220)]
|
||||
public class Migration20120220 : NzbDroneMigration
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Database.AddTable("Seasons", new[]
|
||||
{
|
||||
new Column("SeasonId", DbType.Int32, ColumnProperty.PrimaryKeyWithIdentity),
|
||||
new Column("SeriesId", DbType.Int32, ColumnProperty.NotNull),
|
||||
new Column("SeasonNumber", DbType.Int32, ColumnProperty.NotNull),
|
||||
new Column("Ignored", DbType.Boolean, ColumnProperty.NotNull)
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue