Scanner Fixes (#2800)
This commit is contained in:
parent
123917fbec
commit
8167fc5a4f
34 changed files with 462 additions and 203 deletions
|
@ -88,7 +88,7 @@ public class Program
|
|||
}
|
||||
|
||||
// Apply Before manual migrations that need to run before actual migrations
|
||||
try
|
||||
if (isDbCreated)
|
||||
{
|
||||
Task.Run(async () =>
|
||||
{
|
||||
|
@ -96,17 +96,22 @@ public class Program
|
|||
logger.LogInformation("Running Migrations");
|
||||
|
||||
// v0.7.14
|
||||
await MigrateWantToReadExport.Migrate(context, directoryService, logger);
|
||||
try
|
||||
{
|
||||
await MigrateWantToReadExport.Migrate(context, directoryService, logger);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
/* Swallow */
|
||||
}
|
||||
|
||||
await unitOfWork.CommitAsync();
|
||||
logger.LogInformation("Running Migrations - complete");
|
||||
}).GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.LogCritical(ex, "An error occurred during migration");
|
||||
}
|
||||
|
||||
|
||||
|
||||
await context.Database.MigrateAsync();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue