diff --git a/plugins/table-indexes-structure.php b/plugins/table-indexes-structure.php
new file mode 100644
index 00000000..354c602b
--- /dev/null
+++ b/plugins/table-indexes-structure.php
@@ -0,0 +1,33 @@
+\n";
+ echo "" . lang('Name') . " | " . lang('Type') . " | " . lang('Columns') . " |
\n";
+ foreach ($indexes as $name => $index) {
+ echo "
" . h($name) . " | " . $index['type'];
+ ksort($index["columns"]); // enforce correct columns order
+ $print = array();
+ foreach ($index["columns"] as $key => $val) {
+ $print[] = "" . h($val) . ""
+ . ($index["lengths"][$key] ? "(" . $index["lengths"][$key] . ")" : "")
+ . ($index["descs"][$key] ? " DESC" : "")
+ ;
+ }
+ echo " | " . implode(", ", $print) . "\n";
+ }
+ echo "\n";
+ return true;
+ }
+}
|
---|