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(20110726)]
|
|
|
|
|
public class Migration20110726 : Migration
|
|
|
|
|
{
|
|
|
|
|
public override void Up()
|
|
|
|
|
{
|
|
|
|
|
Database.RemoveTable("ExternalNotificationSettings");
|
|
|
|
|
|
|
|
|
|
Database.AddTable("ExternalNotificationDefinitions", new[]
|
|
|
|
|
{
|
|
|
|
|
new Column("Id", DbType.Int32, ColumnProperty.PrimaryKeyWithIdentity),
|
|
|
|
|
new Column("Enable", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
|
new Column("ExternalNotificationProviderType", DbType.String, ColumnProperty.NotNull),
|
|
|
|
|
new Column("Name", DbType.String, ColumnProperty.NotNull)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override void Down()
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|