Fixes up the dbconnection checker to work with all supported db types.

This commit is contained in:
Shannon
2014-03-13 20:14:56 +11:00
parent d290ffa306
commit a907b5bdcd
7 changed files with 106 additions and 77 deletions

View File

@@ -38,8 +38,9 @@ namespace Umbraco.Web.Install.Controllers
public ActionResult Index()
{
//if this is not an upgrade we will log in with the default user.
// It's not considered an upgrade if the ConfigurationStatus is missing or empty.
if (string.IsNullOrWhiteSpace(GlobalSettings.ConfigurationStatus) == false)
// It's not considered an upgrade if the ConfigurationStatus is missing or empty or if the db is not configured.
if (string.IsNullOrWhiteSpace(GlobalSettings.ConfigurationStatus) == false
&& ApplicationContext.Current.DatabaseContext.IsDatabaseConfigured)
{
Version current;
if (Version.TryParse(GlobalSettings.ConfigurationStatus, out current))