|
@@ -119,7 +119,7 @@ |
|
|
block discarded – undo |
|
119
|
119
|
|
|
120
|
120
|
// @todo: whitelist types? |
|
121
|
121
|
$nolengthtypes = ['DATE', 'TINYBLOB', 'TINYTEXT', 'BLOB', 'TEXT', 'MEDIUMBLOB', |
|
122
|
|
- 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
|
|
122
|
+ 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
|
123
|
123
|
|
|
124
|
124
|
$field[] = (is_int($length) || (is_string($length) && count(explode(',', $length)) === 2)) && !in_array($type, $nolengthtypes, true) |
|
125
|
125
|
? $type.'('. $length . ')' |
Please login to merge, or discard this patch.