Skip to content

Commit

Permalink
Adding tinyIncrements database schema method (#18424)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofMorva authored and taylorotwell committed Mar 20, 2017
1 parent 4be74e1 commit 89c957a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Illuminate/Database/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,17 @@ public function increments($column)
return $this->unsignedInteger($column, true);
}

/**
* Create a new auto-incrementing tiny integer (1-byte) column on the table.
*
* @param string $column
* @return \Illuminate\Support\Fluent
*/
public function tinyIncrements($column)
{
return $this->unsignedTinyInteger($column, true);
}

/**
* Create a new auto-incrementing small integer (2-byte) column on the table.
*
Expand Down

0 comments on commit 89c957a

Please sign in to comment.