Don't set a default value when there isn't a default specified

This commit is contained in:
Bart Visscher 2013-11-11 17:58:21 +01:00
parent 841c622085
commit dcca887f18
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ class MDB2SchemaReader {
}
}
if (isset($name) && isset($type)) {
if (empty($options['default'])) {
if (isset($options['default']) && empty($options['default'])) {
if (empty($options['notnull']) || !$options['notnull']) {
unset($options['default']);
$options['notnull'] = false;