added database migrations
This commit is contained in:
parent
17d8983fb0
commit
f4cf2620d9
6 changed files with 1897 additions and 3 deletions
|
@ -101,7 +101,7 @@ using (var scope = app.Services.CreateScope())
|
|||
var services = scope.ServiceProvider;
|
||||
|
||||
var context = services.GetRequiredService<LiebContext>();
|
||||
context.Database.EnsureCreated();
|
||||
context.Database.Migrate();
|
||||
DbInitializer.Initialize(context);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue