[Server] Move the database lifecycle calls onto the interface (#7859)

This commit is contained in:
BruebachL 2026-11-10 12:16:34 +01:00 • committed by GitHub
parent 526d528e96
commit 0caacb27c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 24 additions and 6 deletions

View file

@ -382,7 +382,7 @@ bool Servatrice::initServer()
if (databaseType != DatabaseNone) {
dbPrefix = getDBPrefixString();
bool dbOpened = servatriceDatabaseInterface->initDatabase(
bool dbOpened = servatriceDatabaseInterface->openDatabase(
"QMYSQL", getDBHostNameString(), getDBDatabaseNameString(), getDBUserNameString(), getDBPasswordString());
if (!dbOpened) {
qCCritical(ServatriceLog) << "Failed to open the database; refusing to start.";