This commit is contained in:
2020-01-27 23:03:01 +00:00
parent 5ee6c90586
commit 021b7e4b7b
6 changed files with 67 additions and 77 deletions

View File

@@ -423,12 +423,12 @@ namespace AyaNova
{
_newLog.LogWarning("BOOT: AYANOVA_PERMANENTLY_ERASE_DATABASE is true, dropping and recreating database");
Util.DbUtil.DropAndRecreateDbAsync(_newLog);
AySchema.CheckAndUpdate(dbContext, _newLog);
AySchema.CheckAndUpdateAsync(dbContext, _newLog);
}
//Check schema
_newLog.LogDebug("BOOT: db schema check");
AySchema.CheckAndUpdate(dbContext, _newLog);
AySchema.CheckAndUpdateAsync(dbContext, _newLog);
//Check database integrity
_newLog.LogDebug("BOOT: db integrity check");