Skip to content

Commit

Permalink
Merge pull request #11394 from umbraco/v9/bugfix/support_localdb_15
Browse files Browse the repository at this point in the history
Also detect localdb 15
  • Loading branch information
Zeegaan authored Oct 18, 2021
2 parents 434ce0f + 05f5c8d commit c005673
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Umbraco.Infrastructure/Persistence/LocalDb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ private void DetectVersion()

if (string.IsNullOrWhiteSpace(programFiles)) return;

// detect 14, 13, 12, 11
for (var i = 14; i > 10; i--)
// detect 15, 14, 13, 12, 11
for (var i = 15; i > 10; i--)
{
var exe = Path.Combine(programFiles, $@"Microsoft SQL Server\{i}0\Tools\Binn\SqlLocalDB.exe");
if (File.Exists(exe) == false) continue;
Expand Down

0 comments on commit c005673

Please sign in to comment.