This commit is contained in:
2021-03-09 15:47:49 +00:00
parent 9a11e4bfb4
commit 2c7cc1742a
3 changed files with 35 additions and 3 deletions

View File

@@ -147,6 +147,7 @@ namespace AyaNova
_newLog.LogInformation("Connected to database server - {0}", DbUtil.DisplayableConnectionString);
//ensure database is ready and present
DbUtil.EnsureDatabaseExists(_newLog);
@@ -572,6 +573,10 @@ namespace AyaNova
AySchema.CheckAndUpdateAsync(dbContext, _newLog).Wait();
}
//Log server version
_newLog.LogInformation("Database server version - {0}", DbUtil.DBServerVersion(dbContext));
//Check schema
_newLog.LogDebug("DB schema check");
AySchema.CheckAndUpdateAsync(dbContext, _newLog).Wait();