diff --git a/CouchLog/Program.cs b/CouchLog/Program.cs index 83d7714..41e3491 100644 --- a/CouchLog/Program.cs +++ b/CouchLog/Program.cs @@ -67,6 +67,7 @@ using (var scope = app.Services.CreateScope()) var CouchLogDB = scope.ServiceProvider.GetRequiredService(); CouchLogDB.Database.Migrate(); + CouchLogDB.Database.EnsureCreated(); string[] roleNames = { "Admin", "User" }; IdentityResult roleResult;