upgrade.php:

- fix typo in _drop_index and _add_index ($tabe -> $table) that broke 
  changing table names via $CONF


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@794 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 15 years ago
parent 3fd0649a16
commit 70d09e17ab

@ -216,7 +216,7 @@ function db_query_parsed($sql, $ignore_errors = 0, $attach_mysql = "") {
function _drop_index ($table, $index) {
global $CONF;
$tabe = table_by_key ($table);
$table = table_by_key ($table);
if ($CONF['database_type'] == 'mysql' || $CONF['database_type'] == 'mysqli' ) {
return "ALTER TABLE $table DROP INDEX $index";
@ -230,7 +230,7 @@ function _drop_index ($table, $index) {
function _add_index($table, $indexname, $fieldlist) {
global $CONF;
$tabe = table_by_key ($table);
$table = table_by_key ($table);
if ($CONF['database_type'] == 'mysql' || $CONF['database_type'] == 'mysqli' ) {
return "ALTER TABLE $table ADD INDEX `$indexname` ( `$fieldlist` )";

Loading…
Cancel
Save