mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
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:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user