mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Fixed: Migrate fails for Sonarr contaminated DBs
This commit is contained in:
parent
ac8fa1ee93
commit
c4324c8e47
@ -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 New Issue
Block a user