From 4c44c86fa1f85b5b744221dec13dc180e3771a4d Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 8 Dec 2025 21:37:08 +0100 Subject: [PATCH] Ensured that Database gets created --- CouchLog/Program.cs | 1 + 1 file changed, 1 insertion(+) 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;