Changes to use database migrations during integration tests

This commit is contained in:
BinaryAlley committed 2024-11-06 22:30:52 +02:00
1 parent 1a2aa36126
commit 5e25474831
1 file changed
+1 -1
@@ -67,7 +67,7 @@ public class LuminaApiFactory : WebApplicationFactory<Program>, IDisposable
{
IServiceProvider scopedServices = scope.ServiceProvider;
LuminaDbContext dbContext = scopedServices.GetRequiredService<LuminaDbContext>();
dbContext.Database.EnsureCreated();
dbContext.Database.Migrate();
}
});
}