From 26d8373dc83cc5e2a0aeee6e424559ed3bc4af39 Mon Sep 17 00:00:00 2001 From: Adam R Grey Date: Wed, 24 Jan 2024 20:32:49 -0500 Subject: [PATCH] i don't know how I didn't trip over this one a million times before read the help for MigrateAsync - "ensure created" does something different, and worse, which prevents future migrations! --- ConsoleService.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/ConsoleService.cs b/ConsoleService.cs index 15a62b1..051569f 100644 --- a/ConsoleService.cs +++ b/ConsoleService.cs @@ -22,7 +22,6 @@ namespace vassago public async Task StartAsync(CancellationToken cancellationToken) { var dbc = new ChattingContext(); - await dbc.Database.EnsureCreatedAsync(); await dbc.Database.MigrateAsync(); if (DiscordTokens?.Any() ?? false)