Fix Database migratioon on build

This commit is contained in:
cesnimda
2026-03-21 12:31:10 +01:00
parent b14c994f94
commit b2f60d4560
+2
View File
@@ -327,6 +327,8 @@ using (var scope = app.Services.CreateScope())
static void EnsureColumn(DbConnection c, string table, string column, string ddl)
{
// Fresh databases won't have the table until EF migrations run.
if (!HasTable(c, table)) return;
if (!HasColumn(c, table, column)) Exec(c, ddl);
}