1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 14:46:36 +02:00

AdminerTableIndexesStructure: Print algorithm

This commit is contained in:
Jakub Vrana
2025-04-18 14:59:59 +02:00
parent de3220acc7
commit 70ce02a798

View 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) {