Skip to content

Commit 96349e4

Browse files
authored
Extended check for locally installed LocalDb to include the most recent version 15. (#12031)
1 parent 1ec9813 commit 96349e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Umbraco.Core/Persistence/LocalDb.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ private void DetectVersion()
103103

104104
if (string.IsNullOrWhiteSpace(programFiles)) return;
105105

106-
// detect 14, 13, 12, 11
107-
for (var i = 14; i > 10; i--)
106+
// detect (17, 16) 15, 14, 13, 12, 11 - future-proofing by a couple of versions
107+
for (var i = 17; i > 10; i--)
108108
{
109109
var exe = Path.Combine(programFiles, $@"Microsoft SQL Server\{i}0\Tools\Binn\SqlLocalDB.exe");
110110
if (File.Exists(exe) == false) continue;

0 commit comments

Comments
 (0)