diff --git a/ChangeLog b/ChangeLog index 57b3459e8..e888d3659 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ $Source$ * Documentation.html: added FAQ 5.17 about problem with Firefox when the Tabbrowser Extensions plugin is installed * tbl_properties.inc.php: TIMESTAMP options improved looks, thanks to Garvin + * tbl_properties.inc.php: TIMESTAMP default CURRENT_TIMESTAMP checkbox + made dynamic, depending on the field's type. 2005-03-30 Alexander M. Turek * server_databases.php: Bug #1172782 (Don't allow to drop diff --git a/tbl_properties.inc.php b/tbl_properties.inc.php index 56176a657..760390c14 100644 --- a/tbl_properties.inc.php +++ b/tbl_properties.inc.php @@ -2,6 +2,7 @@ /* $Id$ */ // vim: expandtab sw=4 ts=4 sts=4: // Check parameters + require_once('./libraries/common.lib.php'); PMA_checkParameters(array('db','table','action','num_fields')); @@ -20,6 +21,23 @@ var switch_movement = += 40102) { ?> +
@@ -215,7 +233,7 @@ for ($i = 0 ; $i < $num_fields; $i++) { $content_cells[$i][$ci] .= "\n" . ''; $ci++; - $content_cells[$i][$ci] = '' . "\n"; if (empty($row['Type'])) { $row['Type'] = ''; @@ -389,8 +407,13 @@ for ($i = 0 ; $i < $num_fields; $i++) { } $content_cells[$i][$ci] .= ''; - if (PMA_MYSQL_INT_VERSION >= 40102 && $type_upper == 'TIMESTAMP') { - $content_cells[$i][$ci] .= '
= 40102) { + if ($type_upper == 'TIMESTAMP') { + $tmp_display_type = 'block'; + } else { + $tmp_display_type = 'none'; + } + $content_cells[$i][$ci] .= '