Display default column value in table overview (thanks to bene)
This commit is contained in:
parent
8372913ab5
commit
4bcc0ca27c
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
1
todo.txt
1
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
|
||||
|
|
Loading…
Reference in a new issue