forked from SoDOff-Project/sodoff
remove EnsureCreated to use ef migrations
This commit is contained in:
parent
28adf1b3f1
commit
bfadf060b5
@ -63,8 +63,6 @@ var app = builder.Build();
|
||||
|
||||
using var scope = app.Services.CreateScope();
|
||||
|
||||
scope.ServiceProvider.GetRequiredService<DBContext>().Database.EnsureCreated();
|
||||
|
||||
// ensure any new migrations are applied
|
||||
var migrations = scope.ServiceProvider.GetRequiredService<DBContext>().Database.GetPendingMigrations();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user