Skip to content

Commit 1b3234a

Browse files
Don't try to write to obsolete database
1 parent 0989043 commit 1b3234a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

OurUmbraco/Our/Api/InstallationController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ public class InstallationController : UmbracoApiController
1313
[HttpPost]
1414
public IHttpActionResult Install(InstallationModel model)
1515
{
16+
// Database no longer exists, skip
17+
return Ok();
18+
1619
if (!ModelState.IsValid)
1720
throw new HttpResponseException(Request.CreateValidationErrorResponse(ModelState));
1821

OurUmbraco/Our/Api/UpgradeCheckController.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ public IHttpActionResult CheckUpgrade(UpgradeModel model)
3131
var caller = HttpContext.Current.Request.UserHostName + "_" +
3232
HttpContext.Current.Request.UserHostAddress;
3333
var callerHashed = FormsAuthentication.HashPasswordForStoringInConfigFile(caller, "sha1");
34-
PersistUpdateCheck(callerHashed, model.VersionMajor, model.VersionMinor, model.VersionPatch,
35-
model.VersionComment);
36-
// End of persisting the update check for our statistics, don't remove!
34+
35+
// Don't try to persist check to obsolete database
36+
//PersistUpdateCheck(callerHashed, model.VersionMajor, model.VersionMinor, model.VersionPatch,
37+
// model.VersionComment);
3738

3839
// Special case for 4.0.4.2, apperently we never recommended them to upgrade
3940
if (version == new System.Version(4, 0, 4, 2) || version == latestVersion)
@@ -82,7 +83,7 @@ private void PersistUpdateCheck(string server, int majorVersion, int minorVersio
8283

8384
// CloudFlare identifies the country for us
8485
var country = HttpContext.Current.Request.Params["HTTP_CF_IPCOUNTRY"];
85-
86+
8687
using (var umbracoUpdateDb = new Database("umbracoUpdate"))
8788
{
8889
var insertCmd = @"EXEC [UpdatePing]

0 commit comments

Comments
 (0)