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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user