1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

fix mssql connection string in setup

This commit is contained in:
Kyle Spearrin 2017-12-20 23:20:12 -05:00
parent 4ccbf318b6
commit dcd5b95db0

View File

@ -232,8 +232,10 @@ namespace Bit.Setup
Console.WriteLine("Migrating database."); Console.WriteLine("Migrating database.");
var dbPass = Helpers.GetValueFronEnvFile("mssql", "SA_PASSWORD"); var dbPass = Helpers.GetValueFronEnvFile("mssql", "SA_PASSWORD");
var masterConnectionString = Helpers.MakeSqlConnectionString("mssql", "master", "sa", dbPass ?? string.Empty); var masterConnectionString = Helpers.MakeSqlConnectionString(
var vaultConnectionString = Helpers.MakeSqlConnectionString("mssql", "vault", "sa", dbPass ?? string.Empty); "bitwarden-mssql", "master", "sa", dbPass ?? string.Empty);
var vaultConnectionString = Helpers.MakeSqlConnectionString(
"bitwarden-mssql", "vault", "sa", dbPass ?? string.Empty);
using(var connection = new SqlConnection(masterConnectionString)) using(var connection = new SqlConnection(masterConnectionString))
{ {