1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-28 18:59:54 +00:00
Sonarr/NzbDrone.Core/Datastore/Migrations/Migration20120220.cs
2012-02-20 19:25:19 -08:00

22 lines
No EOL
875 B
C#

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