mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
Prepare to cut off branch
This commit is contained in:
parent
2a5b6015de
commit
f0b8fd06c3
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user