This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user