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.
|
|
|
|
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)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|