2011-11-13 23:51:15 +03:00
|
|
|
using System;
|
|
|
|
using System.Data;
|
|
|
|
using Migrator.Framework;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Datastore.Migrations
|
|
|
|
{
|
|
|
|
|
|
|
|
[Migration(20111112)]
|
2012-01-15 08:47:13 +03:00
|
|
|
public class Migration2011112 : NzbDroneMigration
|
2011-11-13 23:51:15 +03:00
|
|
|
{
|
2012-01-15 08:47:13 +03:00
|
|
|
protected override void MainDbUpgrade()
|
2011-11-13 23:51:15 +03:00
|
|
|
{
|
|
|
|
Database.AddTable("NewznabDefinitions", new[]
|
|
|
|
{
|
|
|
|
new Column("Id", DbType.Int32, ColumnProperty.PrimaryKeyWithIdentity),
|
|
|
|
new Column("Enable", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
new Column("Name", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("Url", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("ApiKey", DbType.String, ColumnProperty.Null)
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|