Skip to content

Commit

Permalink
Added feature request 'clearing DEFAULT NULL' (rfe:3484063).
Browse files Browse the repository at this point in the history
  • Loading branch information
avsaro authored and lem9 committed Mar 5, 2012
1 parent 8eeec9f commit b916cdb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/Table.class.php
Expand Up @@ -415,6 +415,11 @@ static function generateFieldSpec($name, $type, $length = '', $attribute = '',
}
break;
case 'NULL' :
//If user uncheck null checkbox and not change default value null,
//default value will be ignored.
if ($null !== false && $null != 'NULL') {
break;
}
case 'CURRENT_TIMESTAMP' :
$query .= ' DEFAULT ' . $default_type;
break;
Expand Down

0 comments on commit b916cdb

Please sign in to comment.