Attempting to fix code first migrations not running against a fresh db
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user