mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
Added indexes to the 'chatgroupoperator' table
This commit is contained in:
parent
354ffafa0b
commit
6a594f7f72
@ -150,6 +150,10 @@ $dbtables_indexes = array(
|
|||||||
"${mysqlprefix}chatgroup" => array(
|
"${mysqlprefix}chatgroup" => array(
|
||||||
"parent" => "parent"
|
"parent" => "parent"
|
||||||
),
|
),
|
||||||
|
"${mysqlprefix}chatgroupoperator" => array(
|
||||||
|
"groupid" => "groupid",
|
||||||
|
"operatorid" => "operatorid"
|
||||||
|
),
|
||||||
"${mysqlprefix}chatmessage" => array(
|
"${mysqlprefix}chatmessage" => array(
|
||||||
"idx_agentid" => "agentid"
|
"idx_agentid" => "agentid"
|
||||||
),
|
),
|
||||||
|
@ -194,6 +194,14 @@ if ($act == "silentcreateall") {
|
|||||||
runsql("ALTER TABLE ${mysqlprefix}chatgroup ADD INDEX (parent)", $link);
|
runsql("ALTER TABLE ${mysqlprefix}chatgroup ADD INDEX (parent)", $link);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (in_array("${mysqlprefix}chatgroupoperator.groupid", $absent_indexes)) {
|
||||||
|
runsql("ALTER TABLE ${mysqlprefix}chatgroupoperator ADD INDEX (groupid)", $link);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (in_array("${mysqlprefix}chatgroupoperator.operatorid", $absent_indexes)) {
|
||||||
|
runsql("ALTER TABLE ${mysqlprefix}chatgroupoperator ADD INDEX (operatorid)", $link);
|
||||||
|
}
|
||||||
|
|
||||||
if (in_array("${mysqlprefix}chatmessage.idx_agentid", $absent_indexes)) {
|
if (in_array("${mysqlprefix}chatmessage.idx_agentid", $absent_indexes)) {
|
||||||
runsql("ALTER TABLE ${mysqlprefix}chatmessage ADD INDEX idx_agentid (agentid)", $link);
|
runsql("ALTER TABLE ${mysqlprefix}chatmessage ADD INDEX idx_agentid (agentid)", $link);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user