🚑 Ignoring migration error for now

This commit is contained in:
2025-10-03 16:44:22 +08:00
parent 30fd912281
commit 0b4e8a9777

View File

@@ -36,7 +36,14 @@ app.MapDefaultEndpoints();
using (var scope = app.Services.CreateScope())
{
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
@@ -47,4 +54,4 @@ app.ConfigureGrpcServices();
app.UseSwaggerManifest();
app.Run();
app.Run();