Skip to content

Commit

Permalink
Minor correction in logging text and removed in_use from the playerbo…
Browse files Browse the repository at this point in the history
…ts_names table and added an additional index for the fallback
  • Loading branch information
hermensbas committed Aug 21, 2024
1 parent 63e7b22 commit aa1ae40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions sql/characters/playerbots_names.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);
2 changes: 1 addition & 1 deletion src/RandomPlayerbotFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit aa1ae40

Please sign in to comment.