]> git.joonet.de Git - adminer.git/commitdiff
AdminerTableIndexesStructure: Print algorithm
authorJakub Vrana <jakub@vrana.cz>
Fri, 18 Apr 2025 12:59:59 +0000 (14:59 +0200)
committerJakub Vrana <jakub@vrana.cz>
Fri, 18 Apr 2025 13:00:08 +0000 (15:00 +0200)
plugins/table-indexes-structure.php

index 5c3f7f9263d0da26e6e70a2e4b09339b0757abb0..e7013cb1552c864a5c8e57b72054104f31239139 100644 (file)
@@ -10,9 +10,9 @@ class AdminerTableIndexesStructure extends Adminer\Plugin {
 
        function tableIndexesPrint($indexes, $tableStatus): bool {
                echo "<table>\n";
-               echo "<thead><tr><th>" . Adminer\lang('Name') . "<th>" . Adminer\lang('Type') . "<th>" . Adminer\lang('Columns') . "</thead>\n";
+               echo "<thead><tr><th>" . Adminer\lang('Name') . "<th>" . Adminer\lang('Type') . "<th>" . Adminer\lang('Algorithm') . "<th>" . Adminer\lang('Columns') . "</thead>\n";
                foreach ($indexes as $name => $index) {
-                       echo "<tr><th>" . Adminer\h($name) . "<td>" . $index['type'];
+                       echo "<tr><th>" . Adminer\h($name) . "<td>$index[type]<td>$index[algorithm]";
                        ksort($index["columns"]); // enforce correct columns order
                        $print = array();
                        foreach ($index["columns"] as $key => $val) {