diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php
index 020d8d68..d887cd4c 100644
--- a/adminer/include/adminer.inc.php
+++ b/adminer/include/adminer.inc.php
@@ -366,9 +366,12 @@ class Adminer {
*/
function tableIndexesPrint($indexes) {
echo "
\n";
+ echo "" . lang('Type') . " | " . lang('Column (length)') . " |
\n";
+
foreach ($indexes as $name => $index) {
ksort($index["columns"]); // enforce correct columns order
- $print = array();
+ $print = [];
+
foreach ($index["columns"] as $key => $val) {
$print[] = "" . h($val) . ""
. ($index["lengths"][$key] ? "(" . $index["lengths"][$key] . ")" : "")
@@ -377,6 +380,7 @@ class Adminer {
}
echo "$index[type] | " . implode(", ", $print) . "\n";
}
+
echo " |
---|
\n";
}
diff --git a/adminer/table.inc.php b/adminer/table.inc.php
index af459c0a..569808f5 100644
--- a/adminer/table.inc.php
+++ b/adminer/table.inc.php
@@ -28,10 +28,20 @@ if ($comment != "") {
if ($fields) {
$adminer->tableStructurePrint($fields);
+ if (is_view($table_status)) {
+ $editLink = '' . lang('Alter view') . "\n";
+ } else {
+ $editLink = '
' . lang('Alter table') . "\n";
+ }
+ echo $editLink;
+
if (support("partitioning") && preg_match("~partitioned~", $table_status["Create_options"])) {
echo "
" . lang('Partition by') . "
\n";
+
$partitions_info = get_partitions_info($TABLE);
$adminer->tablePartitionsPrint($partitions_info);
+
+ echo $editLink;
}
}