Fix not null with empty default

remotes/origin/stable6
Bart Visscher 2013-06-24 22:37:07 +07:00
parent 377e9a8677
commit d1b76f1b88
1 changed files with 1 additions and 0 deletions

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