From 624b5e40c65cfa36dd18d1655c3bbe2d5f1ff2b9 Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Fri, 2 Jul 2021 13:08:53 -0400 Subject: [PATCH] Fallback for null/default database name (#1429) --- util/Setup/EnvironmentFileBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/Setup/EnvironmentFileBuilder.cs b/util/Setup/EnvironmentFileBuilder.cs index 4f86ff4b2f..b52537b684 100644 --- a/util/Setup/EnvironmentFileBuilder.cs +++ b/util/Setup/EnvironmentFileBuilder.cs @@ -62,7 +62,7 @@ namespace Bit.Setup var dbConnectionString = new SqlConnectionStringBuilder { DataSource = "tcp:mssql,1433", - InitialCatalog = _context.Install?.Database, + InitialCatalog = _context.Install?.Database ?? "vault", UserID = "sa", Password = dbPassword, MultipleActiveResultSets = false,