🚑 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,8 +36,15 @@ app.MapDefaultEndpoints();
using (var scope = app.Services.CreateScope())
{
var db = scope.ServiceProvider.GetRequiredService<AppDatabase>();
try
{
await db.Database.MigrateAsync();
}
catch (Exception err)
{
Console.WriteLine(err);
}
}
// Configure application middleware pipeline
app.ConfigureAppMiddleware(builder.Configuration);