diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-07-05 22:05:16 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-05 22:05:16 +0200 |
commit | ab2037ab5d215220c7edbd0685f4f3b25d523258 (patch) | |
tree | 3e2000c9ffbd3e3b760a6646e6af4e1f2f1b01e7 /lib | |
parent | b8a7e9730159f66d86e2b09f80c7c420b479646b (diff) | |
download | nextcloud-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.php | 2 |
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'; |