Skip to content

Commit

Permalink
Add index on nick and email
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Jan 25, 2022
1 parent 7ec091b commit 965bc5a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lhc_web/cli/lib/install.php
Expand Up @@ -223,6 +223,8 @@ function step3() {
KEY `anonymized` (`anonymized`),
KEY `has_unread_messages` (`has_unread_messages`),
KEY `status` (`status`),
KEY `nick` (`nick`),
KEY `email` (`email`),
KEY `dep_id_status` (`dep_id`,`status`)
) ENGINE=InnoDB CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;");

Expand Down
2 changes: 2 additions & 0 deletions lhc_web/doc/update_db/structure.json
Expand Up @@ -9845,6 +9845,8 @@
},
"lh_chat" : {
"new" : {
"nick" : "ALTER TABLE `lh_chat` ADD INDEX `nick` (`nick`);",
"email" : "ALTER TABLE `lh_chat` ADD INDEX `email` (`email`);",
"unanswered_chat" : "ALTER TABLE `lh_chat` ADD INDEX `unanswered_chat` (`unanswered_chat`);",
"product_id" : "ALTER TABLE `lh_chat` ADD INDEX `product_id` (`product_id`);",
"dep_id" : "ALTER TABLE `lh_chat` ADD INDEX `dep_id` (`dep_id`);",
Expand Down
2 changes: 2 additions & 0 deletions lhc_web/doc/update_db/update_265.sql
@@ -1,3 +1,5 @@
ALTER TABLE `lh_users_online_session` ADD INDEX `lactivity` (`lactivity`);
ALTER TABLE `lh_notification_subscriber` ADD INDEX `subscriber_hash` (`subscriber_hash`);
ALTER TABLE `lh_chat` ADD INDEX `nick` (`nick`);
ALTER TABLE `lh_chat` ADD INDEX `email` (`email`);
ALTER TABLE `lh_canned_msg_use` ADD INDEX IF NOT EXISTS `chat_id` (`chat_id`);
2 changes: 2 additions & 0 deletions lhc_web/modules/lhinstall/install.php
Expand Up @@ -357,6 +357,8 @@
KEY `anonymized` (`anonymized`),
KEY `has_unread_messages` (`has_unread_messages`),
KEY `status` (`status`),
KEY `nick` (`nick`),
KEY `email` (`email`),
KEY `dep_id_status` (`dep_id`,`status`)
) ENGINE=InnoDB CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;");

Expand Down

0 comments on commit 965bc5a

Please sign in to comment.