parent
fbf79c6639
commit
5fdc8514da
@ -0,0 +1,14 @@
|
||||
using FluentMigrator;
|
||||
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migration
|
||||
{
|
||||
[Migration(190)]
|
||||
public class health_restored_notification : NzbDroneMigrationBase
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Alter.Table("Notifications").AddColumn("OnHealthRestored").AsBoolean().WithDefaultValue(0);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using NzbDrone.Common.Messaging;
|
||||
|
||||
namespace NzbDrone.Core.HealthCheck
|
||||
{
|
||||
public class HealthCheckRestoredEvent : IEvent
|
||||
{
|
||||
public HealthCheck PreviousCheck { get; private set; }
|
||||
public bool IsInStartupGracePeriod { get; private set; }
|
||||
|
||||
public HealthCheckRestoredEvent(HealthCheck previousCheck, bool isInStartupGracePeriod)
|
||||
{
|
||||
PreviousCheck = previousCheck;
|
||||
IsInStartupGracePeriod = isInStartupGracePeriod;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue