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!
This commit is contained in:
Adam R Grey 2024-01-24 20:32:49 -05:00
parent a63a3fcb58
commit 26d8373dc8

View File

@ -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)