🚑 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()) 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