mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Core/Loading: Drop the field script_version from the table version.
It serves no purpose (and one step closer to remove EAI from the core/db)
This commit is contained in:
@@ -295,7 +295,6 @@ void ScriptMgr::Unload()
|
||||
|
||||
void ScriptMgr::LoadDatabase()
|
||||
{
|
||||
sScriptSystemMgr->LoadVersion();
|
||||
sScriptSystemMgr->LoadScriptTexts();
|
||||
sScriptSystemMgr->LoadScriptTextsCustom();
|
||||
sScriptSystemMgr->LoadScriptWaypoints();
|
||||
|
||||
@@ -23,25 +23,6 @@
|
||||
|
||||
ScriptPointVector const SystemMgr::_empty;
|
||||
|
||||
void SystemMgr::LoadVersion()
|
||||
{
|
||||
// Get Version information
|
||||
QueryResult result = WorldDatabase.Query("SELECT script_version FROM version LIMIT 1");
|
||||
|
||||
if (result)
|
||||
{
|
||||
Field* fields = result->Fetch();
|
||||
|
||||
sLog->outString("TSCR: Database version is: %s", fields[0].GetCString());
|
||||
sLog->outString();
|
||||
}
|
||||
else
|
||||
{
|
||||
sLog->outError("TSCR: Missing `version`.`script_version` information.");
|
||||
sLog->outString();
|
||||
}
|
||||
}
|
||||
|
||||
void SystemMgr::LoadScriptTexts()
|
||||
{
|
||||
sLog->outString("TSCR: Loading Script Texts...");
|
||||
|
||||
@@ -64,7 +64,6 @@ class SystemMgr
|
||||
typedef UNORDERED_MAP<uint32, ScriptPointVector> PointMoveMap;
|
||||
|
||||
//Database
|
||||
void LoadVersion();
|
||||
void LoadScriptTexts();
|
||||
void LoadScriptTextsCustom();
|
||||
void LoadScriptWaypoints();
|
||||
|
||||
Reference in New Issue
Block a user