@@ -77,7 +77,7 @@ public function __construct($table, Closure $callback = null)
7777 * Execute the blueprint against the database.
7878 *
7979 * @param \Illuminate\Database\Connection $connection
80- * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
80+ * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
8181 * @return void
8282 */
8383 public function build (Connection $ connection , Grammar $ grammar )
@@ -400,7 +400,7 @@ public function index($columns, $name = null, $algorithm = null)
400400 * Specify a spatial index for the table.
401401 *
402402 * @param string|array $columns
403- * @param string $name
403+ * @param string $name
404404 * @return \Illuminate\Support\Fluent
405405 */
406406 public function spatialIndex ($ columns , $ name = null )
@@ -665,8 +665,8 @@ public function unsignedBigInteger($column, $autoIncrement = false)
665665 * Create a new float column on the table.
666666 *
667667 * @param string $column
668- * @param int $total
669- * @param int $places
668+ * @param int $total
669+ * @param int $places
670670 * @return \Illuminate\Support\Fluent
671671 */
672672 public function float ($ column , $ total = 8 , $ places = 2 )
@@ -677,9 +677,9 @@ public function float($column, $total = 8, $places = 2)
677677 /**
678678 * Create a new double column on the table.
679679 *
680- * @param string $column
681- * @param int|null $total
682- * @param int|null $places
680+ * @param string $column
681+ * @param int|null $total
682+ * @param int|null $places
683683 * @return \Illuminate\Support\Fluent
684684 */
685685 public function double ($ column , $ total = null , $ places = null )
@@ -691,8 +691,8 @@ public function double($column, $total = null, $places = null)
691691 * Create a new decimal column on the table.
692692 *
693693 * @param string $column
694- * @param int $total
695- * @param int $places
694+ * @param int $total
695+ * @param int $places
696696 * @return \Illuminate\Support\Fluent
697697 */
698698 public function decimal ($ column , $ total = 8 , $ places = 2 )
@@ -730,7 +730,7 @@ public function boolean($column)
730730 * Create a new enum column on the table.
731731 *
732732 * @param string $column
733- * @param array $allowed
733+ * @param array $allowed
734734 * @return \Illuminate\Support\Fluent
735735 */
736736 public function enum ($ column , array $ allowed )
@@ -775,7 +775,7 @@ public function date($column)
775775 * Create a new date-time column on the table.
776776 *
777777 * @param string $column
778- * @param int $precision
778+ * @param int $precision
779779 * @return \Illuminate\Support\Fluent
780780 */
781781 public function dateTime ($ column , $ precision = 0 )
@@ -787,7 +787,7 @@ public function dateTime($column, $precision = 0)
787787 * Create a new date-time column (with time zone) on the table.
788788 *
789789 * @param string $column
790- * @param int $precision
790+ * @param int $precision
791791 * @return \Illuminate\Support\Fluent
792792 */
793793 public function dateTimeTz ($ column , $ precision = 0 )
@@ -799,11 +799,12 @@ public function dateTimeTz($column, $precision = 0)
799799 * Create a new time column on the table.
800800 *
801801 * @param string $column
802+ * @param int $precision
802803 * @return \Illuminate\Support\Fluent
803804 */
804- public function time ($ column )
805+ public function time ($ column, $ precision = 0 )
805806 {
806- return $ this ->addColumn ('time ' , $ column );
807+ return $ this ->addColumn ('time ' , $ column, compact ( ' precision ' ) );
807808 }
808809
809810 /**
@@ -821,7 +822,7 @@ public function timeTz($column)
821822 * Create a new timestamp column on the table.
822823 *
823824 * @param string $column
824- * @param int $precision
825+ * @param int $precision
825826 * @return \Illuminate\Support\Fluent
826827 */
827828 public function timestamp ($ column , $ precision = 0 )
@@ -833,7 +834,7 @@ public function timestamp($column, $precision = 0)
833834 * Create a new timestamp (with time zone) column on the table.
834835 *
835836 * @param string $column
836- * @param int $precision
837+ * @param int $precision
837838 * @return \Illuminate\Support\Fluent
838839 */
839840 public function timestampTz ($ column , $ precision = 0 )
@@ -844,7 +845,7 @@ public function timestampTz($column, $precision = 0)
844845 /**
845846 * Add nullable creation and update timestamps to the table.
846847 *
847- * @param int $precision
848+ * @param int $precision
848849 * @return void
849850 */
850851 public function timestamps ($ precision = 0 )
@@ -859,7 +860,7 @@ public function timestamps($precision = 0)
859860 *
860861 * Alias for self::timestamps().
861862 *
862- * @param int $precision
863+ * @param int $precision
863864 * @return void
864865 */
865866 public function nullableTimestamps ($ precision = 0 )
@@ -870,7 +871,7 @@ public function nullableTimestamps($precision = 0)
870871 /**
871872 * Add creation and update timestampTz columns to the table.
872873 *
873- * @param int $precision
874+ * @param int $precision
874875 * @return void
875876 */
876877 public function timestampsTz ($ precision = 0 )
@@ -895,7 +896,7 @@ public function softDeletes($column = 'deleted_at', $precision = 0)
895896 /**
896897 * Add a "deleted at" timestampTz for the table.
897898 *
898- * @param int $precision
899+ * @param int $precision
899900 * @return \Illuminate\Support\Fluent
900901 */
901902 public function softDeletesTz ($ precision = 0 )
@@ -1080,10 +1081,10 @@ public function rememberToken()
10801081 /**
10811082 * Add a new index command to the blueprint.
10821083 *
1083- * @param string $type
1084+ * @param string $type
10841085 * @param string|array $columns
1085- * @param string $index
1086- * @param string|null $algorithm
1086+ * @param string $index
1087+ * @param string|null $algorithm
10871088 * @return \Illuminate\Support\Fluent
10881089 */
10891090 protected function indexCommand ($ type , $ columns , $ index , $ algorithm = null )
@@ -1126,7 +1127,7 @@ protected function dropIndexCommand($command, $type, $index)
11261127 * Create a default index name for the table.
11271128 *
11281129 * @param string $type
1129- * @param array $columns
1130+ * @param array $columns
11301131 * @return string
11311132 */
11321133 protected function createIndexName ($ type , array $ columns )
@@ -1141,7 +1142,7 @@ protected function createIndexName($type, array $columns)
11411142 *
11421143 * @param string $type
11431144 * @param string $name
1144- * @param array $parameters
1145+ * @param array $parameters
11451146 * @return \Illuminate\Support\Fluent
11461147 */
11471148 public function addColumn ($ type , $ name , array $ parameters = [])
@@ -1186,7 +1187,7 @@ protected function addCommand($name, array $parameters = [])
11861187 * Create a new Fluent command.
11871188 *
11881189 * @param string $name
1189- * @param array $parameters
1190+ * @param array $parameters
11901191 * @return \Illuminate\Support\Fluent
11911192 */
11921193 protected function createCommand ($ name , array $ parameters = [])
0 commit comments