Fix invalid CertificateCheckUrl column errors on existing databases.

Auto-migrate SonicContainer schema on startup, rename legacy typo columns, and use fallback SQL when the column is not yet present.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-03 13:24:20 +02:00
co-authored by Cursor
parent 76e280d809
commit 0a449727ad
5 changed files with 362 additions and 36 deletions
@@ -67,6 +67,19 @@ internal static class Program
}
}
try
{
DatabaseSchemaPatcher
.EnsureCertificateCheckUrlColumnAsync(
settings.Database.ConnectionString)
.GetAwaiter()
.GetResult();
}
catch
{
// Ohne ALTER-Rechte weiter starten; Repositories nutzen Fallback-SQL.
}
Application.Run(
new Form1());
}