mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 19:32:24 +00:00
Fix for database schema conversion where character_ table has 0 characters present. This will allow the tables to still be created properly and the old one renamed.
This commit is contained in:
parent
4cbccfdce2
commit
973aa94cb5
@ -924,9 +924,9 @@ bool Database::CheckDatabaseConversions() {
|
|||||||
int runconvert = 0;
|
int runconvert = 0;
|
||||||
|
|
||||||
/* Check For Legacy Storage Method */
|
/* Check For Legacy Storage Method */
|
||||||
std::string rquery = StringFormat("SELECT `profile` FROM `character_` LIMIT 1");
|
std::string rquery = StringFormat("SHOW TABLES LIKE 'character_'");
|
||||||
auto results = QueryDatabase(rquery);
|
auto results = QueryDatabase(rquery);
|
||||||
for (auto row = results.begin(); row != results.end(); ++row) {
|
if (results.RowCount() == 1){
|
||||||
runconvert = 1;
|
runconvert = 1;
|
||||||
printf("\n\n::: Legacy Character Data Binary Blob Storage Detected... \n");
|
printf("\n\n::: Legacy Character Data Binary Blob Storage Detected... \n");
|
||||||
printf("----------------------------------------------------------\n\n");
|
printf("----------------------------------------------------------\n\n");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user