mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 07:37:02 +00:00
Output DB/ScriptLib versions in ".server info" command.
Required support by used scripting library.
This commit is contained in:
parent
24549669a9
commit
6f190fedd4
15 changed files with 62 additions and 17 deletions
|
|
@ -458,17 +458,9 @@ bool Master::_StartDB()
|
|||
///- Clean the database before starting
|
||||
clearOnlineAccounts();
|
||||
|
||||
QueryResult* result = WorldDatabase.Query("SELECT version FROM db_version LIMIT 1");
|
||||
if(result)
|
||||
{
|
||||
Field* fields = result->Fetch();
|
||||
|
||||
sLog.outString("Using %s", fields[0].GetString());
|
||||
delete result;
|
||||
}
|
||||
else
|
||||
sLog.outString("Using unknown world database.");
|
||||
sWorld.LoadDBVersion();
|
||||
|
||||
sLog.outString("Using %s", sWorld.GetDBVersion());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue