2011-09-10 08:42:05 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using Migrator.Framework;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Datastore.Migrations
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[Migration(20110909)]
|
|
|
|
|
public class Migration20110909 : Migration
|
|
|
|
|
{
|
|
|
|
|
public override void Up()
|
|
|
|
|
{
|
|
|
|
|
Database.AddColumn("Series", "Runtime", DbType.Int32, ColumnProperty.Null);
|
|
|
|
|
Database.AddColumn("Series", "BannerUrl", DbType.String, ColumnProperty.Null);
|
2011-09-14 02:25:33 +00:00
|
|
|
|
|
|
|
|
|
Database.AddTable("QualityTypes", new[]
|
|
|
|
|
{
|
|
|
|
|
new Column("QualityTypeId", DbType.Int32, ColumnProperty.PrimaryKey),
|
|
|
|
|
new Column("Name", DbType.String, ColumnProperty.NotNull),
|
2011-09-16 04:42:30 +00:00
|
|
|
|
new Column("MinSize", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
|
new Column("MaxSize", DbType.Int32, ColumnProperty.NotNull)
|
2011-09-14 02:25:33 +00:00
|
|
|
|
});
|
2011-09-10 08:42:05 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Down()
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|