Commit a4c40c1b authored by bonchovylkov's avatar bonchovylkov

add migrate insted of ensure created

parent e96d09f9
......@@ -146,7 +146,8 @@
{
var dbContext = serviceScope.ServiceProvider.GetRequiredService<ApplicationDbContext>();
dbContext.Database.EnsureCreated();
dbContext.Database.Migrate();
//dbContext.Database.EnsureCreated();
ApplicationDbContextSeeder.Seed(dbContext, serviceScope.ServiceProvider);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment