Minor correction in logging text and removed in_use from the playerbots_names table and added an additional index for the fallback

This commit is contained in:
bash
2024-08-21 19:34:26 +00:00
parent 63e7b227d8
commit aa1ae40e2c
2 changed files with 2 additions and 3 deletions

View File

@@ -100010,5 +100010,4 @@ INSERT INTO `playerbots_names` VALUES
DELETE FROM `playerbots_names` WHERE LENGTH(`name`) > 12;
ALTER TABLE `playerbots_names` MODIFY `name` varchar(12);
ALTER TABLE `playerbots_names` ADD in_use BIT default 0;
ALTER TABLE `playerbots_names` ADD UNIQUE INDEX name(name, gender);

View File

@@ -412,7 +412,7 @@ void RandomPlayerbotFactory::CreateRandomBots()
std::vector<std::future<void>> account_creations;
int account_creation = 0;
LOG_INFO("playerbots", "Creating cache for names, gender and race.");
LOG_INFO("playerbots", "Creating cache for names per gender and race.");
QueryResult result = CharacterDatabase.Query("SELECT name, gender FROM playerbots_names");
if (!result)
{