From ba2254858f68ccbd47a222a0a9f1bcdd5056f95d Mon Sep 17 00:00:00 2001 From: Adam R Grey Date: Tue, 5 Dec 2023 23:15:09 -0500 Subject: [PATCH] also migrate db --- ConsoleService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ConsoleService.cs b/ConsoleService.cs index 065e7bc..dd746b8 100644 --- a/ConsoleService.cs +++ b/ConsoleService.cs @@ -1,5 +1,6 @@ namespace vassago { + using Microsoft.EntityFrameworkCore; using vassago; using vassago.Models; using vassago.TwitchInterface; @@ -22,6 +23,7 @@ namespace vassago { var dbc = new ChattingContext(); dbc.Database.EnsureCreated(); + dbc.Database.Migrate(); if (DiscordTokens?.Any() ?? false) foreach (var dt in DiscordTokens)