mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-13 13:30:00 -08:00
[Server] Move the database lifecycle calls onto the interface (#7859)
This commit is contained in:
parent
526d528e96
commit
0caacb27c1
4 changed files with 24 additions and 6 deletions
|
|
@ -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.";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue