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.
20 lines
729 B
20 lines
729 B
using FluentMigrator;
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
{
|
|
[Migration(071)]
|
|
public class add_notification_status : NzbDroneMigrationBase
|
|
{
|
|
protected override void MainDbUpgrade()
|
|
{
|
|
Create.TableForModel("NotificationStatus")
|
|
.WithColumn("ProviderId").AsInt32().NotNullable().Unique()
|
|
.WithColumn("InitialFailure").AsDateTimeOffset().Nullable()
|
|
.WithColumn("MostRecentFailure").AsDateTimeOffset().Nullable()
|
|
.WithColumn("EscalationLevel").AsInt32().NotNullable()
|
|
.WithColumn("DisabledTill").AsDateTimeOffset().Nullable();
|
|
}
|
|
}
|
|
}
|