diff --git a/src/NzbDrone.Core/Datastore/Migration/153_indexer_client_status_search_changes.cs b/src/NzbDrone.Core/Datastore/Migration/153_indexer_client_status_search_changes.cs index 9a9a6dadc..74cb33345 100644 --- a/src/NzbDrone.Core/Datastore/Migration/153_indexer_client_status_search_changes.cs +++ b/src/NzbDrone.Core/Datastore/Migration/153_indexer_client_status_search_changes.cs @@ -8,6 +8,12 @@ namespace NzbDrone.Core.Datastore.Migration { protected override void MainDbUpgrade() { + //Cleanup cases of Sonarr Interference with Radarr db + if (Schema.Table("PendingReleases").Column("Reason").Exists()) + { + Delete.Column("Reason").FromTable("PendingReleases"); + } + Alter.Table("PendingReleases").AddColumn("Reason").AsInt32().WithDefaultValue(0); Rename.Column("IndexerId").OnTable("IndexerStatus").To("ProviderId");