mirror of https://github.com/lidarr/Lidarr
24 lines
991 B
C#
24 lines
991 B
C#
using FluentMigrator;
|
|
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
{
|
|
[Migration(29)]
|
|
public class health_issue_notification : NzbDroneMigrationBase
|
|
{
|
|
protected override void MainDbUpgrade()
|
|
{
|
|
Alter.Table("Notifications").AddColumn("OnHealthIssue").AsBoolean().WithDefaultValue(false);
|
|
Alter.Table("Notifications").AddColumn("IncludeHealthWarnings").AsBoolean().WithDefaultValue(false);
|
|
Alter.Table("Notifications").AddColumn("OnDownloadFailure").AsBoolean().WithDefaultValue(false);
|
|
Alter.Table("Notifications").AddColumn("OnImportFailure").AsBoolean().WithDefaultValue(false);
|
|
Alter.Table("Notifications").AddColumn("OnTrackRetag").AsBoolean().WithDefaultValue(false);
|
|
|
|
Delete.Column("OnDownload").FromTable("Notifications");
|
|
|
|
Rename.Column("OnAlbumDownload").OnTable("Notifications").To("OnReleaseImport");
|
|
}
|
|
}
|
|
}
|