fixed bug #1939031 Auto_Increment selected for TimeStamp by Default
This commit is contained in:
@@ -16,7 +16,9 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
|||||||
- bug #1955386 [session] Overriding session.hash_bits_per_character
|
- bug #1955386 [session] Overriding session.hash_bits_per_character
|
||||||
- [interface] sanitize the table comments in table print view,
|
- [interface] sanitize the table comments in table print view,
|
||||||
thanks to Norman Hippert
|
thanks to Norman Hippert
|
||||||
|
- bug #1939031 Auto_Increment selected for TimeStamp by Default
|
||||||
|
|
||||||
|
|
||||||
2.11.6.0 (2008-04-29)
|
2.11.6.0 (2008-04-29)
|
||||||
- bug #1903724 [interface] Displaying of very large queries in error message
|
- bug #1903724 [interface] Displaying of very large queries in error message
|
||||||
- bug #1905711 [compatibility] Functions deprecated in PHP 5.3: is_a() and
|
- bug #1905711 [compatibility] Functions deprecated in PHP 5.3: is_a() and
|
||||||
|
@@ -359,6 +359,9 @@ for ($i = 0 ; $i <= $num_fields; $i++) {
|
|||||||
if ($zerofill) {
|
if ($zerofill) {
|
||||||
$attribute = 'UNSIGNED ZEROFILL';
|
$attribute = 'UNSIGNED ZEROFILL';
|
||||||
}
|
}
|
||||||
|
if (isset($row['Extra']) && $row['Extra'] == 'ON UPDATE CURRENT_TIMESTAMP') {
|
||||||
|
$attribute = 'ON UPDATE CURRENT_TIMESTAMP';
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($submit_attribute) && $submit_attribute != FALSE) {
|
if (isset($submit_attribute) && $submit_attribute != FALSE) {
|
||||||
$attribute = $submit_attribute;
|
$attribute = $submit_attribute;
|
||||||
@@ -459,7 +462,7 @@ for ($i = 0 ; $i <= $num_fields; $i++) {
|
|||||||
|
|
||||||
$content_cells[$i][$ci] = '<select name="field_extra[]" id="field_' . $i . '_' . ($ci - $ci_offset) . '">';
|
$content_cells[$i][$ci] = '<select name="field_extra[]" id="field_' . $i . '_' . ($ci - $ci_offset) . '">';
|
||||||
|
|
||||||
if (!isset($row) || empty($row['Extra'])) {
|
if (!isset($row) || empty($row['Extra']) || $row['Extra'] != 'auto_increment') {
|
||||||
$content_cells[$i][$ci] .= "\n";
|
$content_cells[$i][$ci] .= "\n";
|
||||||
$content_cells[$i][$ci] .= '<option value=""> </option>' . "\n";
|
$content_cells[$i][$ci] .= '<option value=""> </option>' . "\n";
|
||||||
$content_cells[$i][$ci] .= '<option value="AUTO_INCREMENT">auto_increment</option>' . "\n";
|
$content_cells[$i][$ci] .= '<option value="AUTO_INCREMENT">auto_increment</option>' . "\n";
|
||||||
|
Reference in New Issue
Block a user