@@ -1677,6 +1677,7 @@ public function getMaxValue()
1677
1677
return null ;
1678
1678
}
1679
1679
$ dataType = $ this ->getEloquentDataMethod ();
1680
+ $ max = 2147483647 ;
1680
1681
1681
1682
if ($ this ->isDecimal ()) {
1682
1683
$ length = $ this ->getMethodParam (0 ) ?: 1 ;
@@ -1687,21 +1688,20 @@ public function getMaxValue()
1687
1688
$ max = substr_replace ($ max , '. ' , $ declimal * -1 , 0 );
1688
1689
}
1689
1690
$ max = floatval ($ max );
1690
- } elseif ($ dataType == 'integer ' ) {
1691
+ } elseif ($ dataType == 'integer ' || $ dataType == ' increments ' ) {
1691
1692
$ max = $ this ->isUnsigned ? 4294967295 : 2147483647 ;
1692
- } elseif ($ dataType == 'mediumInteger ' ) {
1693
+ } elseif ($ dataType == 'mediumInteger ' || $ dataType == ' mediumIncrements ' ) {
1693
1694
$ max = $ this ->isUnsigned ? 16777215 : 8388607 ;
1694
- } elseif ($ dataType == 'smallInteger ' ) {
1695
+ } elseif ($ dataType == 'smallInteger ' || $ dataType == ' smallIncrements ' ) {
1695
1696
$ max = $ this ->isUnsigned ? 65535 : 32767 ;
1696
- } elseif ($ dataType == 'tinyInteger ' ) {
1697
+ } elseif ($ dataType == 'tinyInteger ' || $ dataType == ' tinyIncrements ' ) {
1697
1698
$ max = $ this ->isUnsigned ? 255 : 127 ;
1698
- } elseif ($ dataType == 'bigInteger ' ) {
1699
+ } elseif ($ dataType == 'bigInteger ' || $ dataType == ' bigIncrements ' ) {
1699
1700
$ max = $ this ->isUnsigned ? 18446744073709551615 : 9223372036854775807 ;
1700
1701
}
1701
1702
1702
1703
return $ max ;
1703
1704
}
1704
-
1705
1705
/**
1706
1706
* Gets the minimum value a field can equal.
1707
1707
*
0 commit comments