Browse Source

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

remotes/origin/stable6
Bart Visscher 12 years ago
parent
commit
dcca887f18
  1. 2
      lib/private/db/mdb2schemareader.php

2
lib/private/db/mdb2schemareader.php

@ -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;

Loading…
Cancel
Save