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
@ -643,6 +643,13 @@ bool Database::CheckDatabaseVersion(DatabaseTypes database)
|
|||||||
PrintErrorYouNeedDatabaseVersionExpectedByCore(core_db_requirements);
|
PrintErrorYouNeedDatabaseVersionExpectedByCore(core_db_requirements);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
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."
|
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());
|
"\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());
|
||||||
@ -654,6 +661,7 @@ bool Database::CheckDatabaseVersion(DatabaseTypes database)
|
|||||||
sLog.outString("You can run the core without any problem like that.");
|
sLog.outString("You can run the core without any problem like that.");
|
||||||
sLog.outString();
|
sLog.outString();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user