Add support for mediumint and smallint. Who knew they existed? Not I!
This commit is contained in:
parent
10e6bd25f2
commit
41c328f5cb
1 changed files with 1 additions and 1 deletions
|
|
@ -395,7 +395,7 @@ class Model extends Entity
|
|||
}
|
||||
|
||||
// Calculate Max Length for field.
|
||||
if (in_array($column->getDataType(), ['int', 'bigint', 'tinyint'], true)) {
|
||||
if (in_array($column->getDataType(), ['int', 'bigint', 'mediumint', 'smallint', 'tinyint'], true)) {
|
||||
$oColumn->setMaxLength($column->getNumericPrecision());
|
||||
} else {
|
||||
$oColumn->setMaxLength($column->getCharacterMaximumLength());
|
||||
|
|
|
|||
Loading…
Reference in a new issue