Attempting to fix code first migrations not running against a fresh db
All checks were successful
ci/woodpecker/tag/api_build Pipeline was successful
ci/woodpecker/tag/api_uploadimage Pipeline was successful

This commit is contained in:
2024-04-10 20:52:31 -05:00
parent 8dd914c6c2
commit a51e61aabc
2 changed files with 3 additions and 1 deletions

View File

@ -97,7 +97,7 @@ var app = builder.Build();
// Run database migrations
using (var scope = app.Services.CreateScope())
{
var yabaDbContext = scope.ServiceProvider.GetRequiredService<YABAReadWriteContext>();
var yabaDbContext = scope.ServiceProvider.GetRequiredService<YABABaseContext>();
yabaDbContext.Database.Migrate();
}