Shree krishna lamichhane
Shree Krishna Lamichhane

Shree Krishna Lamichhane

Length of various types of integers in MySQL/Laravel migration.

Shree krishna lamichhane
·May 2, 2022·

1 min read

Subscribe to my newsletter and never miss my upcoming articles

Note: For personal reference. Check out if it helps you.

Length of various types of integers in mysql/ Laravel migration.


$table->bigInteger('test');  //20
$table->integer('test');  //11

$table->mediumInteger('test');  //9 
$table->smallInteger('test');  //6
$table->tinyInteger('test');  //4
$table->unsignedBigInteger('test');  //20
$table->unsignedMediumInteger('test');  //8
$table->unsignedSmallInteger('test');   //5
$table->unsignedTinyInteger('test');  //3
 
Share this