Skip to content

Commit dce9d65

Browse files
Update Blueprint.php (#58019)
1 parent 6c319eb commit dce9d65

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

src/Illuminate/Database/Schema/Blueprint.php

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ public function foreign($columns, $name = null)
725725
}
726726

727727
/**
728-
* Create a new auto-incrementing big integer (8-byte) column on the table.
728+
* Create a new auto-incrementing big integer column on the table (8-byte, 0 to 18,446,744,073,709,551,615).
729729
*
730730
* @param string $column
731731
* @return \Illuminate\Database\Schema\ColumnDefinition
@@ -736,7 +736,7 @@ public function id($column = 'id')
736736
}
737737

738738
/**
739-
* Create a new auto-incrementing integer (4-byte) column on the table.
739+
* Create a new auto-incrementing integer column on the table (4-byte, 0 to 4,294,967,295).
740740
*
741741
* @param string $column
742742
* @return \Illuminate\Database\Schema\ColumnDefinition
@@ -747,7 +747,7 @@ public function increments($column)
747747
}
748748

749749
/**
750-
* Create a new auto-incrementing integer (4-byte) column on the table.
750+
* Create a new auto-incrementing integer column on the table (4-byte, 0 to 4,294,967,295).
751751
*
752752
* @param string $column
753753
* @return \Illuminate\Database\Schema\ColumnDefinition
@@ -758,7 +758,7 @@ public function integerIncrements($column)
758758
}
759759

760760
/**
761-
* Create a new auto-incrementing tiny integer (1-byte) column on the table.
761+
* Create a new auto-incrementing tiny integer column on the table (1-byte, 0 to 255).
762762
*
763763
* @param string $column
764764
* @return \Illuminate\Database\Schema\ColumnDefinition
@@ -769,7 +769,7 @@ public function tinyIncrements($column)
769769
}
770770

771771
/**
772-
* Create a new auto-incrementing small integer (2-byte) column on the table.
772+
* Create a new auto-incrementing small integer column on the table (2-byte, 0 to 65,535).
773773
*
774774
* @param string $column
775775
* @return \Illuminate\Database\Schema\ColumnDefinition
@@ -780,7 +780,7 @@ public function smallIncrements($column)
780780
}
781781

782782
/**
783-
* Create a new auto-incrementing medium integer (3-byte) column on the table.
783+
* Create a new auto-incrementing medium integer column on the table (3-byte, 0 to 16,777,215).
784784
*
785785
* @param string $column
786786
* @return \Illuminate\Database\Schema\ColumnDefinition
@@ -791,7 +791,7 @@ public function mediumIncrements($column)
791791
}
792792

793793
/**
794-
* Create a new auto-incrementing big integer (8-byte) column on the table.
794+
* Create a new auto-incrementing big integer column on the table (8-byte, 0 to 18,446,744,073,709,551,615).
795795
*
796796
* @param string $column
797797
* @return \Illuminate\Database\Schema\ColumnDefinition
@@ -830,7 +830,7 @@ public function string($column, $length = null)
830830
}
831831

832832
/**
833-
* Create a new tiny text column on the table.
833+
* Create a new tiny text column on the table (up to 255 characters).
834834
*
835835
* @param string $column
836836
* @return \Illuminate\Database\Schema\ColumnDefinition
@@ -841,7 +841,7 @@ public function tinyText($column)
841841
}
842842

843843
/**
844-
* Create a new text column on the table.
844+
* Create a new text column on the table (up to 65,535 characters / ~64 KB).
845845
*
846846
* @param string $column
847847
* @return \Illuminate\Database\Schema\ColumnDefinition
@@ -852,7 +852,7 @@ public function text($column)
852852
}
853853

854854
/**
855-
* Create a new medium text column on the table.
855+
* Create a new medium text column on the table (up to 16,777,215 characters / ~16 MB).
856856
*
857857
* @param string $column
858858
* @return \Illuminate\Database\Schema\ColumnDefinition
@@ -863,7 +863,7 @@ public function mediumText($column)
863863
}
864864

865865
/**
866-
* Create a new long text column on the table.
866+
* Create a new long text column on the table (up to 4,294,967,295 characters / ~4 GB).
867867
*
868868
* @param string $column
869869
* @return \Illuminate\Database\Schema\ColumnDefinition
@@ -875,6 +875,7 @@ public function longText($column)
875875

876876
/**
877877
* Create a new integer (4-byte) column on the table.
878+
* Range: -2,147,483,648 to 2,147,483,647 (signed) or 0 to 4,294,967,295 (unsigned).
878879
*
879880
* @param string $column
880881
* @param bool $autoIncrement
@@ -888,6 +889,7 @@ public function integer($column, $autoIncrement = false, $unsigned = false)
888889

889890
/**
890891
* Create a new tiny integer (1-byte) column on the table.
892+
* Range: -128 to 127 (signed) or 0 to 255 (unsigned).
891893
*
892894
* @param string $column
893895
* @param bool $autoIncrement
@@ -901,6 +903,7 @@ public function tinyInteger($column, $autoIncrement = false, $unsigned = false)
901903

902904
/**
903905
* Create a new small integer (2-byte) column on the table.
906+
* Range: -32,768 to 32,767 (signed) or 0 to 65,535 (unsigned).
904907
*
905908
* @param string $column
906909
* @param bool $autoIncrement
@@ -914,6 +917,7 @@ public function smallInteger($column, $autoIncrement = false, $unsigned = false)
914917

915918
/**
916919
* Create a new medium integer (3-byte) column on the table.
920+
* Range: -8,388,608 to 8,388,607 (signed) or 0 to 16,777,215 (unsigned).
917921
*
918922
* @param string $column
919923
* @param bool $autoIncrement
@@ -927,6 +931,7 @@ public function mediumInteger($column, $autoIncrement = false, $unsigned = false
927931

928932
/**
929933
* Create a new big integer (8-byte) column on the table.
934+
* Range: -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 (signed) or 0 to 18,446,744,073,709,551,615 (unsigned).
930935
*
931936
* @param string $column
932937
* @param bool $autoIncrement
@@ -939,7 +944,7 @@ public function bigInteger($column, $autoIncrement = false, $unsigned = false)
939944
}
940945

941946
/**
942-
* Create a new unsigned integer (4-byte) column on the table.
947+
* Create a new unsigned integer column on the table (4-byte, 0 to 4,294,967,295).
943948
*
944949
* @param string $column
945950
* @param bool $autoIncrement
@@ -951,7 +956,7 @@ public function unsignedInteger($column, $autoIncrement = false)
951956
}
952957

953958
/**
954-
* Create a new unsigned tiny integer (1-byte) column on the table.
959+
* Create a new unsigned tiny integer column on the table (1-byte, 0 to 255).
955960
*
956961
* @param string $column
957962
* @param bool $autoIncrement
@@ -963,7 +968,7 @@ public function unsignedTinyInteger($column, $autoIncrement = false)
963968
}
964969

965970
/**
966-
* Create a new unsigned small integer (2-byte) column on the table.
971+
* Create a new unsigned small integer column on the table (2-byte, 0 to 65,535).
967972
*
968973
* @param string $column
969974
* @param bool $autoIncrement
@@ -975,7 +980,7 @@ public function unsignedSmallInteger($column, $autoIncrement = false)
975980
}
976981

977982
/**
978-
* Create a new unsigned medium integer (3-byte) column on the table.
983+
* Create a new unsigned medium integer column on the table (3-byte, 0 to 16,777,215).
979984
*
980985
* @param string $column
981986
* @param bool $autoIncrement
@@ -987,7 +992,7 @@ public function unsignedMediumInteger($column, $autoIncrement = false)
987992
}
988993

989994
/**
990-
* Create a new unsigned big integer (8-byte) column on the table.
995+
* Create a new unsigned big integer column on the table (8-byte, 0 to 18,446,744,073,709,551,615).
991996
*
992997
* @param string $column
993998
* @param bool $autoIncrement
@@ -999,7 +1004,7 @@ public function unsignedBigInteger($column, $autoIncrement = false)
9991004
}
10001005

10011006
/**
1002-
* Create a new unsigned big integer (8-byte) column on the table.
1007+
* Create a new unsigned big integer column on the table (8-byte, 0 to 18,446,744,073,709,551,615).
10031008
*
10041009
* @param string $column
10051010
* @return \Illuminate\Database\Schema\ForeignIdColumnDefinition

0 commit comments

Comments
 (0)