Fix not null with empty default

remotes/origin/stable6
Bart Visscher 12 years ago
parent 377e9a8677
commit d1b76f1b88
  1. 1
      lib/db/mdb2schemareader.php

@ -144,6 +144,7 @@ class OC_DB_MDB2SchemaReader {
if (empty($options['default'])) {
if (empty($options['notnull']) || !$options['notnull']) {
unset($options['default']);
$options['notnull'] = false;
}
if ($type == 'integer') {
$options['default'] = 0;

Loading…
Cancel
Save