]> git.joonet.de Git - adminer.git/commitdiff
Update table-structure.php
authorDenitz <197527+Denitz@users.noreply.github.com>
Tue, 25 Feb 2025 11:22:46 +0000 (14:22 +0300)
committerJakub Vrána <jakub@vrana.cz>
Tue, 25 Feb 2025 15:44:25 +0000 (16:44 +0100)
plugins/table-structure.php

index 3e9fd35f2cd17d7101f5450b9d5fe1591afdce1e..1db0b0d6119d64a583b0980aee45dcbc15e1cfcb 100644 (file)
@@ -15,12 +15,12 @@ class AdminerTableStructure {
        function tableStructurePrint($fields) {
                echo "<div class='scrollable'>\n";
                echo "<table class='nowrap odds'>\n";
-               echo "<thead><tr><th>" . lang('Column') . "<th>" . lang('Type') . "<th>" . lang('Nullable') . "<th>" . lang('Default') . (support("comment") ? "<th>" . lang('Comment') : "") . "</thead>\n";
+               echo "<thead><tr><th>" . lang('Column') . "<th>" . lang('Type') . "<th>" . lang('Collation') . "<th>" . lang('Nullable') . "<th>" . lang('Default') . (support("comment") ? "<th>" . lang('Comment') : "") . "</thead>\n";
                foreach ($fields as $field) {
                        echo "<tr><th>" . h($field["field"]) . ($field["primary"] ? " (PRIMARY)" : "");
                        echo "<td><span>" . h($field["full_type"]) . "</span>";
                        echo ($field["auto_increment"] ? " <i>" . lang('Auto Increment') . "</i>" : "");
-                       echo ($field["collation"] ? " <i>" . h($field["collation"]) . "</i>" : "");
+                       echo "<td>" . ($field["collation"] ? " <i>" . h($field["collation"]) . "</i>" : "");
                        echo "<td>" . ($field["null"] ? lang('Yes') : lang('No'));
                        echo "<td>" . h($field["default"]);
                        echo (support("comment") ? "<td>" . h($field["comment"]) : "");