Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Display default column value in table overview (thanks to bene)

  • Loading branch information...
commit 4bcc0ca27c92d09ff7211a4293b955e961a3c034 1 parent 8372913
@vrana authored
Showing with 4 additions and 2 deletions.
  1. +2 −1  adminer/table.inc.php
  2. +1 −1  changes.txt
  3. +1 −0  todo.txt
View
3  adminer/table.inc.php
@@ -17,8 +17,9 @@
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";
}
View
2  changes.txt
@@ -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)
View
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
Please sign in to comment.
Something went wrong with that request. Please try again.