]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only change integer type when the length is set
authorBart Visscher <bartv@thisnet.nl>
Fri, 5 Jul 2013 20:05:16 +0000 (22:05 +0200)
committerBart Visscher <bartv@thisnet.nl>
Fri, 5 Jul 2013 20:05:16 +0000 (22:05 +0200)
lib/db/mdb2schemareader.php

index c506aa26521976091c58ec259a41fd1cbadb5ca2..4dc1fd4616d63df7d89fa579dd14de371c3b6a47 100644 (file)
@@ -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';