mirror of
https://github.com/Radarr/Radarr
synced 2025-12-20 15:24:41 +01:00
Fixed: Migrate fails for Sonarr contaminated DBs
This commit is contained in:
parent
ac8fa1ee93
commit
c4324c8e47
1 changed files with 6 additions and 0 deletions
|
|
@ -8,6 +8,12 @@ public class indexer_client_status_search_changes : NzbDroneMigrationBase
|
|||
{
|
||||
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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue