This commit is contained in:
@@ -219,7 +219,7 @@ namespace AyaNova.Util
|
|||||||
//
|
//
|
||||||
internal static async Task DropAndRecreateDbAsync(ILogger _log)
|
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
|
//clear all connections so that the database can be dropped
|
||||||
Npgsql.NpgsqlConnection.ClearAllPools();
|
Npgsql.NpgsqlConnection.ClearAllPools();
|
||||||
@@ -237,7 +237,7 @@ namespace AyaNova.Util
|
|||||||
cmd.Connection = conn;
|
cmd.Connection = conn;
|
||||||
cmd.CommandText = "CREATE DATABASE \"" + _dbName + "\";";
|
cmd.CommandText = "CREATE DATABASE \"" + _dbName + "\";";
|
||||||
await cmd.ExecuteNonQueryAsync();
|
await cmd.ExecuteNonQueryAsync();
|
||||||
_log.LogInformation("Database re-created successfully!");
|
_log.LogDebug("Database created");
|
||||||
}
|
}
|
||||||
await conn.CloseAsync();
|
await conn.CloseAsync();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -434,9 +434,9 @@ namespace AyaNova.Core
|
|||||||
//TODO: RELEASE WARNING: this needs to be dealt with before production release
|
//TODO: RELEASE WARNING: this needs to be dealt with before production release
|
||||||
if (ServerBootConfig.AYANOVA_SERVER_TEST_MODE)
|
if (ServerBootConfig.AYANOVA_SERVER_TEST_MODE)
|
||||||
{
|
{
|
||||||
log.LogInformation("TEST MODE TRIAL LICENSE KEY BEING FETCHED");
|
log.LogInformation("Server is in test mode, fetching trial key");
|
||||||
sUrl = $"{LICENSE_SERVER_URL}rvf/{TEST_TRIAL_KEY_DBID.ToString()}";
|
sUrl = $"{LICENSE_SERVER_URL}rvf/{TEST_TRIAL_KEY_DBID.ToString()}";
|
||||||
log.LogInformation(sUrl);
|
// log.LogInformation(sUrl);
|
||||||
}
|
}
|
||||||
//##########################################################################################################
|
//##########################################################################################################
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user