summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-07-05 22:05:16 +0200
committerBart Visscher <bartv@thisnet.nl>2013-07-05 22:05:16 +0200
commitab2037ab5d215220c7edbd0685f4f3b25d523258 (patch)
tree3e2000c9ffbd3e3b760a6646e6af4e1f2f1b01e7 /lib
parentb8a7e9730159f66d86e2b09f80c7c420b479646b (diff)
downloadnextcloud-server-ab2037ab5d215220c7edbd0685f4f3b25d523258.tar.gz
nextcloud-server-ab2037ab5d215220c7edbd0685f4f3b25d523258.zip
Only change integer type when the length is set
Diffstat (limited to 'lib')
-rw-r--r--lib/db/mdb2schemareader.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db/mdb2schemareader.php b/lib/db/mdb2schemareader.php
index c506aa26521..4dc1fd4616d 100644
--- a/lib/db/mdb2schemareader.php
+++ b/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';