Fix core startup message when db version is same as core (#150)
* Fix core startup message when db version is same as core * [Styling] Fix blank space database.cpp L664 * Grrrr $%#!
This commit is contained in:
parent
268ab71f8b
commit
51b4906b57
@ -644,15 +644,23 @@ bool Database::CheckDatabaseVersion(DatabaseTypes database)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sLog.outString("The table `db_version` indicates that your [%s] database has a higher version than the one referenced by the core."
|
if (current_db_version == core_db_requirements.expected_version && current_db_structure == core_db_requirements.expected_structure)
|
||||||
"\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();
|
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());
|
||||||
PrintNormalYouHaveDatabaseVersion(current_db_version, current_db_structure, current_db_content, description);
|
sLog.outString();
|
||||||
sLog.outString();
|
}
|
||||||
PrintNormalDatabaseVersionReferencedByCore(core_db_requirements);
|
else
|
||||||
sLog.outString();
|
{
|
||||||
sLog.outString("You can run the core without any problem like that.");
|
sLog.outString("The table `db_version` indicates that your [%s] database has a higher version than the one referenced by the core."
|
||||||
sLog.outString();
|
"\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;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user