2011-09-10 11:42:05 +03:00
|
|
|
using System;
|
|
|
|
using System.Data;
|
|
|
|
using Migrator.Framework;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Datastore.Migrations
|
|
|
|
{
|
|
|
|
|
|
|
|
[Migration(20110909)]
|
2012-01-15 08:47:13 +03:00
|
|
|
public class Migration20110909 : NzbDroneMigration
|
2011-09-10 11:42:05 +03:00
|
|
|
{
|
2012-01-15 08:47:13 +03:00
|
|
|
protected override void MainDbUpgrade()
|
2011-09-10 11:42:05 +03:00
|
|
|
{
|
|
|
|
Database.AddColumn("Series", "Runtime", DbType.Int32, ColumnProperty.Null);
|
|
|
|
Database.AddColumn("Series", "BannerUrl", DbType.String, ColumnProperty.Null);
|
2011-09-14 05:25:33 +03:00
|
|
|
|
|
|
|
Database.AddTable("QualityTypes", new[]
|
|
|
|
{
|
|
|
|
new Column("QualityTypeId", DbType.Int32, ColumnProperty.PrimaryKey),
|
|
|
|
new Column("Name", DbType.String, ColumnProperty.NotNull),
|
2011-09-16 07:42:30 +03:00
|
|
|
new Column("MinSize", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("MaxSize", DbType.Int32, ColumnProperty.NotNull)
|
2011-09-14 05:25:33 +03:00
|
|
|
});
|
2011-09-10 11:42:05 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|