Diff of /adminer/drivers/mysql.inc.php [c8248b] .. [5f3709] Maximize Restore

  Switch to unified view

a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php
...
...
443
        $return = array();
443
        $return = array();
444
        foreach (get_rows("SHOW INDEX FROM " . table($table), $connection2) as $row) {
444
        foreach (get_rows("SHOW INDEX FROM " . table($table), $connection2) as $row) {
445
            $return[$row["Key_name"]]["type"] = ($row["Key_name"] == "PRIMARY" ? "PRIMARY" : ($row["Index_type"] == "FULLTEXT" ? "FULLTEXT" : ($row["Non_unique"] ? "INDEX" : "UNIQUE")));
445
            $return[$row["Key_name"]]["type"] = ($row["Key_name"] == "PRIMARY" ? "PRIMARY" : ($row["Index_type"] == "FULLTEXT" ? "FULLTEXT" : ($row["Non_unique"] ? "INDEX" : "UNIQUE")));
446
            $return[$row["Key_name"]]["columns"][] = $row["Column_name"];
446
            $return[$row["Key_name"]]["columns"][] = $row["Column_name"];
447
            $return[$row["Key_name"]]["lengths"][] = $row["Sub_part"];
447
            $return[$row["Key_name"]]["lengths"][] = $row["Sub_part"];
448
          $return[$row["Key_name"]]["descs"][] = null;
448
        }
449
        }
449
        return $return;
450
        return $return;
450
    }
451
    }
451
452
452
    /** Get foreign keys in table
453
    /** Get foreign keys in table