From a1f9bc9b173e46be7c42eb27f174fee6e2c00c7b Mon Sep 17 00:00:00 2001 From: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com> Date: Fri, 13 Nov 2020 08:50:35 +0100 Subject: [PATCH] NetCore: Install page db checks (#9388) * Making more explicit checks for the db type * Fixed confusion with both ints and strings Co-authored-by: Bjarke Berg --- .../Install/InstallSteps/DatabaseConfigureStep.cs | 8 ++++---- .../src/installer/steps/database.html | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseConfigureStep.cs b/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseConfigureStep.cs index 7727b6b760..4b3268d4c5 100644 --- a/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseConfigureStep.cs +++ b/src/Umbraco.Infrastructure/Install/InstallSteps/DatabaseConfigureStep.cs @@ -73,14 +73,14 @@ namespace Umbraco.Web.Install.InstallSteps { var databases = new List() { - new { name = "Microsoft SQL Server", id = 1 }, - new { name = "Microsoft SQL Azure", id = 3 }, - new { name = "Custom connection string", id = -1 }, + new { name = "Microsoft SQL Server", id = DatabaseType.SqlServer.ToString() }, + new { name = "Microsoft SQL Azure", id = DatabaseType.SqlAzure.ToString() }, + new { name = "Custom connection string", id = DatabaseType.Custom.ToString() }, }; if (IsSqlCeAvailable()) { - databases.Insert(0, new { name = "Microsoft SQL Server Compact (SQL CE)", id = 0 }); + databases.Insert(0, new { name = "Microsoft SQL Server Compact (SQL CE)", id = DatabaseType.SqlCe.ToString() }); } return new diff --git a/src/Umbraco.Web.UI.Client/src/installer/steps/database.html b/src/Umbraco.Web.UI.Client/src/installer/steps/database.html index 2c81f3ddf3..eee933b561 100644 --- a/src/Umbraco.Web.UI.Client/src/installer/steps/database.html +++ b/src/Umbraco.Web.UI.Client/src/installer/steps/database.html @@ -17,11 +17,11 @@ -
+

Great! No need to configure anything, you can simply click the continue button below to continue to the next step

-
+
What is the exact connection string we should use?
@@ -32,7 +32,7 @@
-
+
Where do we find your database?
@@ -40,7 +40,7 @@
Enter server domain or IP
@@ -86,7 +86,7 @@
-
+