From f0b8fd06c32b80a68fcb05b277d00ed24cb250df Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Mon, 18 Apr 2011 16:05:45 +0400 Subject: [PATCH] Prepare to cut off branch --- src/messenger/webim/install/dbinfo.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/messenger/webim/install/dbinfo.php b/src/messenger/webim/install/dbinfo.php index 7557d3c6..502cf682 100644 --- a/src/messenger/webim/install/dbinfo.php +++ b/src/messenger/webim/install/dbinfo.php @@ -112,12 +112,6 @@ $dbtables = array( ) ); -$dbtables_indexes = array( - "${mysqlprefix}chatmessage" => array( - "idx_agentid" => "agentid" - ) -); - $memtables = array(); $dbtables_can_update = array( @@ -145,7 +139,7 @@ function show_install_err($text) function create_table($id, $link) { - global $dbtables, $dbtables_indexes, $memtables, $dbencoding, $mysqlprefix; + global $dbtables, $memtables, $dbencoding, $mysqlprefix; if (!isset($dbtables[$id])) { show_install_err("Unknown table: $id, " . mysql_error($link)); @@ -158,12 +152,6 @@ function create_table($id, $link) $query .= " $k $v,\n"; } - if (isset($dbtables_indexes[$id])) { - foreach ($dbtables_indexes[$id] as $k => $v) { - $query .= " INDEX $k ($v),\n"; - } - } - $query = preg_replace("/,\n$/", "", $query); $query .= ") charset $dbencoding"; if (in_array($id, $memtables)) {