]> git.joonet.de Git - adminer.git/commitdiff
Display default column value in table overview (thanks to bene)
authorJakub Vrana <jakub@vrana.cz>
Sun, 5 Jun 2011 06:35:15 +0000 (08:35 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sun, 5 Jun 2011 06:35:15 +0000 (08:35 +0200)
adminer/table.inc.php
changes.txt
todo.txt

index 021e34723be1f7492243ac52f685503d9bf62fc9..aa36e7303e816ebd924fa6218278fbf05168ea58 100644 (file)
@@ -17,8 +17,9 @@ if ($fields) {
        echo "<table cellspacing='0'>\n";
        echo "<thead><tr><th>" . lang('Column') . "<td>" . lang('Type') . (support("comment") ? "<td>" . lang('Comment') : "") . "</thead>\n";
        foreach ($fields as $field) {
-               echo "<tr" . odd() . "><th title='" . h($field["default"] !== "" ? $field["default"] : " ") . "'>" . h($field["field"]);
+               echo "<tr" . odd() . "><th>" . h($field["field"]);
                echo "<td title='" . h($field["collation"]) . "'>" . h($field["full_type"]) . ($field["null"] ? " <i>NULL</i>" : "") . ($field["auto_increment"] ? " <i>" . lang('Auto Increment') . "</i>" : "");
+               echo (isset($field["default"]) ? " [<b>" . h($field["default"]) . "</b>]" : "");
                echo (support("comment") ? "<td>" . nbsp($field["comment"]) : "");
                echo "\n";
        }
index 79e9fde86486c169ed14650103da33b4ca589c89..787d7f8238129b633754a1cd9570c034fb8338c2 100644 (file)
@@ -4,7 +4,7 @@ Shortcut for database privileges
 Append new index with auto index selection (bug #3282127)
 Bit type default value
 Display foreign key name in tooltip
-Display default column value in tooltip
+Display default column value in table overview
 Display column collation in tooltip
 Pagination support (Oracle)
 Autocomplete for big foreign keys (Editor)
index cd13bf5d0d3a13d7acd997b168157772a2cbad6d..bd12e27bd249f4d5b20e4012a51e510c57c3ff5d 100644 (file)
--- a/todo.txt
+++ b/todo.txt
@@ -11,6 +11,7 @@ Double click in select - Esc to abort editation
 Draggable columns in alter table (thanks to Michal Manak)
 <option class> for system databases and schemas - information_schema and driver-specific (thanks to Vaclav Novotny)
 Define indexes and foreign keys name - http://forum.zdrojak.root.cz/index.php?topic=185.msg1255#msg1255
+Skinnable plus.gif and other images - http://typo3.org/extensions/repository/view/t3adminer/current/
 ? Filter by value in row under <thead> in select
 ? Column and table names auto-completition in SQL textarea - http://blog.quplo.com/2010/06/css-code-completion-in-your-browser/
 ? Aliasing of built-in functions can save 7 KB, function minification can save 7 KB, substitution of repetitive $a["a"] can save 4 KB, substitution of $_GET and friends can save 2 KB, aliasing of $connection->query can save 24 B, JS Closure compiler can save 2 KB, not enclosing HTML attribute values can save 1.2 KB, replacing \\n by \n can save .3 KB