mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11:10 +00:00
Changes to use database migrations during integration tests
This commit is contained in:
1 parent
1a2aa36126
commit
5e25474831
1 file changed
+1
-1
+1
-1
@@ -67,7 +67,7 @@ public class LuminaApiFactory : WebApplicationFactory<Program>, IDisposable
|
|||||||
{
|
{
|
||||||
IServiceProvider scopedServices = scope.ServiceProvider;
|
IServiceProvider scopedServices = scope.ServiceProvider;
|
||||||
LuminaDbContext dbContext = scopedServices.GetRequiredService<LuminaDbContext>();
|
LuminaDbContext dbContext = scopedServices.GetRequiredService<LuminaDbContext>();
|
||||||
dbContext.Database.EnsureCreated();
|
dbContext.Database.Migrate();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user