2011-07-28 07:21:49 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using Migrator.Framework;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Datastore.Migrations
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[Migration(20110726)]
|
2012-01-15 05:47:13 +00:00
|
|
|
|
public class Migration20110726 : NzbDroneMigration
|
2011-07-28 07:21:49 +00:00
|
|
|
|
{
|
2012-01-15 05:47:13 +00:00
|
|
|
|
protected override void MainDbUpgrade()
|
2011-07-28 07:21:49 +00:00
|
|
|
|
{
|
|
|
|
|
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)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|