🚑 Ignoring migration error for now
This commit is contained in:
@@ -36,7 +36,14 @@ app.MapDefaultEndpoints();
|
|||||||
using (var scope = app.Services.CreateScope())
|
using (var scope = app.Services.CreateScope())
|
||||||
{
|
{
|
||||||
var db = scope.ServiceProvider.GetRequiredService<AppDatabase>();
|
var db = scope.ServiceProvider.GetRequiredService<AppDatabase>();
|
||||||
await db.Database.MigrateAsync();
|
try
|
||||||
|
{
|
||||||
|
await db.Database.MigrateAsync();
|
||||||
|
}
|
||||||
|
catch (Exception err)
|
||||||
|
{
|
||||||
|
Console.WriteLine(err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure application middleware pipeline
|
// Configure application middleware pipeline
|
||||||
@@ -47,4 +54,4 @@ app.ConfigureGrpcServices();
|
|||||||
|
|
||||||
app.UseSwaggerManifest();
|
app.UseSwaggerManifest();
|
||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
|
Reference in New Issue
Block a user