Merge branch '2015.11-develop' into 2016.11
[tine20] / tine20 / Setup / Backend / Abstract.php
index 7f910ea..2e6833c 100644 (file)
@@ -531,8 +531,12 @@ abstract class Setup_Backend_Abstract implements Setup_Backend_Interface
                             } elseif(isset($typeMapping['defaultScale'])) {
                                 $scale = ',' . $typeMapping['defaultScale'];
                             }
-                             
-                            $options = "({$_field->length}{$scale})";
+
+                            if (!isset($typeMapping['lengthLessTypes']) || ! in_array($type, $typeMapping['lengthLessTypes'])) {
+                                $options = "({$_field->length}{$scale})";
+                            } else {
+                                $options = '';
+                            }
                             break;
                         }
                     }