also migrate db
All checks were successful
gitea/vassago/pipeline/head This commit looks good

This commit is contained in:
Adam R Grey 2023-12-05 23:15:09 -05:00
parent c1e32ef39a
commit ba2254858f

View File

@ -1,5 +1,6 @@
namespace vassago namespace vassago
{ {
using Microsoft.EntityFrameworkCore;
using vassago; using vassago;
using vassago.Models; using vassago.Models;
using vassago.TwitchInterface; using vassago.TwitchInterface;
@ -22,6 +23,7 @@ namespace vassago
{ {
var dbc = new ChattingContext(); var dbc = new ChattingContext();
dbc.Database.EnsureCreated(); dbc.Database.EnsureCreated();
dbc.Database.Migrate();
if (DiscordTokens?.Any() ?? false) if (DiscordTokens?.Any() ?? false)
foreach (var dt in DiscordTokens) foreach (var dt in DiscordTokens)