Skip to content

Commit

Permalink
Fix core startup message when db version is same as core (TrinityCore…
Browse files Browse the repository at this point in the history
…#150)

* Fix core startup message when db version is same as core

* [Styling] Fix blank space database.cpp L664

* Grrrr $%#!
  • Loading branch information
Elmsroth authored and billy1arm committed Mar 17, 2021
1 parent 03a0400 commit a49133f
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions src/shared/Database/Database.cpp
Expand Up @@ -644,15 +644,23 @@ bool Database::CheckDatabaseVersion(DatabaseTypes database)
}
else
{
sLog.outString("The table `db_version` indicates that your [%s] database has a higher version than the one referenced by the core."
"\nYou have probably applied DB updates, and that's a good thing to keep your server up to date.", core_db_requirements.dbname.c_str());
sLog.outString();
PrintNormalYouHaveDatabaseVersion(current_db_version, current_db_structure, current_db_content, description);
sLog.outString();
PrintNormalDatabaseVersionReferencedByCore(core_db_requirements);
sLog.outString();
sLog.outString("You can run the core without any problem like that.");
sLog.outString();
if (current_db_version == core_db_requirements.expected_version && current_db_structure == core_db_requirements.expected_structure)
{
sLog.outString("The table `db_version` indicates that your [%s] database hase the same version as the core requirements.", core_db_requirements.dbname.c_str());
sLog.outString();
}
else
{
sLog.outString("The table `db_version` indicates that your [%s] database has a higher version than the one referenced by the core."
"\nYou have probably applied DB updates, and that's a good thing to keep your server up to date.", core_db_requirements.dbname.c_str());
sLog.outString();
PrintNormalYouHaveDatabaseVersion(current_db_version, current_db_structure, current_db_content, description);
sLog.outString();
PrintNormalDatabaseVersionReferencedByCore(core_db_requirements);
sLog.outString();
sLog.outString("You can run the core without any problem like that.");
sLog.outString();
}
}

return true;
Expand Down

0 comments on commit a49133f

Please sign in to comment.