Fix migration to include ConfigContract and EnableAuto. Also fixed redirects on lists.

Please delete NetImport Table and the corresponding VersionInfo Row (123)
pull/497/head
Leonardo Galli 8 years ago
parent 76a42b28f3
commit f481676c81

@ -14,7 +14,9 @@ namespace NzbDrone.Core.Datastore.Migration
.WithColumn("Enabled").AsBoolean()
.WithColumn("Name").AsString().Unique()
.WithColumn("Implementation").AsString()
.WithColumn("Settings").AsString().Nullable();
.WithColumn("ConfigContract").AsString().Nullable()
.WithColumn("Settings").AsString().Nullable()
.WithColumn("EnableAuto").AsInt32();
}
}
}

@ -57,8 +57,7 @@ namespace NzbDrone.Core.Datastore
.Ignore(i => i.SupportsSearch);
Mapper.Entity<NetImportDefinition>().RegisterDefinition("NetImport")
.Ignore(i => i.Enable)
.Ignore(i => i.ConfigContract);
.Ignore(i => i.Enable);
Mapper.Entity<NotificationDefinition>().RegisterDefinition("Notifications")
.Ignore(i => i.SupportsOnGrab)

@ -306,6 +306,8 @@ namespace NzbDrone.Core.Indexers
request.HttpRequest.RateLimit = RateLimit;
}
request.HttpRequest.AllowAutoRedirect = true;
return new IndexerResponse(request, _httpClient.Execute(request.HttpRequest));
}

@ -226,6 +226,8 @@ namespace NzbDrone.Core.NetImport
request.HttpRequest.RateLimit = RateLimit;
}
request.HttpRequest.AllowAutoRedirect = true;
return new NetImportResponse(request, _httpClient.Execute(request.HttpRequest));
}

Loading…
Cancel
Save