This commit is contained in:
2020-03-26 14:19:21 +00:00
parent 33ec11feed
commit d20542f375
2 changed files with 4 additions and 4 deletions

View File

@@ -219,7 +219,7 @@ namespace AyaNova.Util
//
internal static async Task DropAndRecreateDbAsync(ILogger _log)
{
_log.LogInformation("Dropping and recreating Database \"{0}\"", _dbName);
_log.LogInformation("Dropping and creating Database \"{0}\"", _dbName);
//clear all connections so that the database can be dropped
Npgsql.NpgsqlConnection.ClearAllPools();
@@ -237,7 +237,7 @@ namespace AyaNova.Util
cmd.Connection = conn;
cmd.CommandText = "CREATE DATABASE \"" + _dbName + "\";";
await cmd.ExecuteNonQueryAsync();
_log.LogInformation("Database re-created successfully!");
_log.LogDebug("Database created");
}
await conn.CloseAsync();
}