Only change integer type when the length is set

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

@ -156,7 +156,7 @@ class OC_DB_MDB2SchemaReader {
unset($options['default']);
}
}
if ($type == 'integer') {
if ($type == 'integer' && isset($options['length'])) {
$length = $options['length'];
if ($length < 4) {
$type = 'smallint';

Loading…
Cancel
Save