2019-03-22 00:47:54 +00:00
|
|
|
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()
|
|
|
|
{
|
2022-01-26 00:08:27 +00:00
|
|
|
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);
|
2019-03-22 00:47:54 +00:00
|
|
|
|
|
|
|
Delete.Column("OnDownload").FromTable("Notifications");
|
2020-01-03 12:49:24 +00:00
|
|
|
|
2019-03-22 00:47:54 +00:00
|
|
|
Rename.Column("OnAlbumDownload").OnTable("Notifications").To("OnReleaseImport");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|