@@ -43,13 +43,12 @@ public function integer($name)
4343 /**
4444 * Creating column
4545 * @param string $name
46- * @param int $length
4746 *
4847 * @return $this
4948 */
50- public function tinyInteger ($ name, ? int $ length = 4 )
49+ public function unsignedInteger ($ name )
5150 {
52- return $ this ->addColumn ($ name , 'tinyInteger ' , compact ( ' length ' ) );
51+ return $ this ->addColumn ($ name , 'unsignedInteger ' );
5352 }
5453
5554 /**
@@ -74,6 +73,54 @@ public function unsignedBigInteger($name)
7473 return $ this ->addColumn ($ name , 'unsignedBigInteger ' );
7574 }
7675
76+ /**
77+ * Creating column
78+ * @param string $name
79+ * @param int $length
80+ *
81+ * @return $this
82+ */
83+ public function tinyInteger ($ name , ?int $ length = 4 )
84+ {
85+ return $ this ->addColumn ($ name , 'tinyInteger ' , compact ('length ' ));
86+ }
87+
88+ /**
89+ * Creating column
90+ * @param string $name
91+ * @param int $length
92+ *
93+ * @return $this
94+ */
95+ public function unsignedTinyInteger ($ name , ?int $ length = 4 )
96+ {
97+ return $ this ->addColumn ($ name , 'unsignedTinyInteger ' , compact ('length ' ));
98+ }
99+
100+ /**
101+ * Creating column
102+ * @param string $name
103+ * @param int $length
104+ *
105+ * @return $this
106+ */
107+ public function unsignedSmallInteger ($ name , ?int $ length = 4 )
108+ {
109+ return $ this ->addColumn ($ name , 'unsignedSmallInteger ' , compact ('length ' ));
110+ }
111+
112+ /**
113+ * Creating column
114+ * @param string $name
115+ * @param int $length
116+ *
117+ * @return $this
118+ */
119+ public function unsignedMediumInteger ($ name , ?int $ length = 4 )
120+ {
121+ return $ this ->addColumn ($ name , 'unsignedMediumInteger ' , compact ('length ' ));
122+ }
123+
77124 /**
78125 * Creating a column
79126 * @param string $name
@@ -100,6 +147,19 @@ public function decimal($name, $total = 8, $places = 2)
100147 return $ this ->addColumn ($ name , 'decimal ' , ['total ' => $ total , 'places ' => $ places ]);
101148 }
102149
150+ /**
151+ * Creating a column
152+ * @param string $name
153+ * @param int $total
154+ * @param int $places
155+ *
156+ * @return $this
157+ */
158+ public function unsignedDecimal ($ name , $ total = 8 , $ places = 2 )
159+ {
160+ return $ this ->addColumn ($ name , 'unsignedDecimal ' , ['total ' => $ total , 'places ' => $ places ]);
161+ }
162+
103163 /**
104164 * Creating a column
105165 *
@@ -131,7 +191,7 @@ public function string($name, ?int $length = 255)
131191 * @param string $name
132192 * @param int $length
133193 *
134- * @return object\char
194+ * @return $this
135195 */
136196 public function char ($ name , $ length = 255 )
137197 {
@@ -333,7 +393,7 @@ public function ipAddress($name)
333393 *
334394 * @param string $name
335395 *
336- * @return \Illuminate\Database\Schema\ColumnDefinition
396+ * @return $this
337397 */
338398 public function macAddress ($ name )
339399 {
0 commit comments