mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
Fix migration to include ConfigContract and EnableAuto. Also fixed redirects on lists.
Please delete NetImport Table and the corresponding VersionInfo Row (123)
This commit is contained in:
parent
76a42b28f3
commit
f481676c81
4 changed files with 8 additions and 3 deletions
|
@ -14,7 +14,9 @@ namespace NzbDrone.Core.Datastore.Migration
|
||||||
.WithColumn("Enabled").AsBoolean()
|
.WithColumn("Enabled").AsBoolean()
|
||||||
.WithColumn("Name").AsString().Unique()
|
.WithColumn("Name").AsString().Unique()
|
||||||
.WithColumn("Implementation").AsString()
|
.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);
|
.Ignore(i => i.SupportsSearch);
|
||||||
|
|
||||||
Mapper.Entity<NetImportDefinition>().RegisterDefinition("NetImport")
|
Mapper.Entity<NetImportDefinition>().RegisterDefinition("NetImport")
|
||||||
.Ignore(i => i.Enable)
|
.Ignore(i => i.Enable);
|
||||||
.Ignore(i => i.ConfigContract);
|
|
||||||
|
|
||||||
Mapper.Entity<NotificationDefinition>().RegisterDefinition("Notifications")
|
Mapper.Entity<NotificationDefinition>().RegisterDefinition("Notifications")
|
||||||
.Ignore(i => i.SupportsOnGrab)
|
.Ignore(i => i.SupportsOnGrab)
|
||||||
|
|
|
@ -306,6 +306,8 @@ namespace NzbDrone.Core.Indexers
|
||||||
request.HttpRequest.RateLimit = RateLimit;
|
request.HttpRequest.RateLimit = RateLimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
request.HttpRequest.AllowAutoRedirect = true;
|
||||||
|
|
||||||
return new IndexerResponse(request, _httpClient.Execute(request.HttpRequest));
|
return new IndexerResponse(request, _httpClient.Execute(request.HttpRequest));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -226,6 +226,8 @@ namespace NzbDrone.Core.NetImport
|
||||||
request.HttpRequest.RateLimit = RateLimit;
|
request.HttpRequest.RateLimit = RateLimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
request.HttpRequest.AllowAutoRedirect = true;
|
||||||
|
|
||||||
return new NetImportResponse(request, _httpClient.Execute(request.HttpRequest));
|
return new NetImportResponse(request, _httpClient.Execute(request.HttpRequest));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue