Commit dd8ebe60 authored by Taylor Otwell's avatar Taylor Otwell

make index names required.

parent e9da2ef2
......@@ -67,7 +67,7 @@ class Table {
* @param string $name
* @return Fluent
*/
public function primary($columns, $name = null)
public function primary($columns, $name)
{
return $this->key(__FUNCTION__, $columns, $name);
}
......@@ -79,7 +79,7 @@ class Table {
* @param string $name
* @return Fluent
*/
public function unique($columns, $name = null)
public function unique($columns, $name)
{
return $this->key(__FUNCTION__, $columns, $name);
}
......@@ -91,7 +91,7 @@ class Table {
* @param string $name
* @return Fluent
*/
public function fulltext($columns, $name = null)
public function fulltext($columns, $name)
{
return $this->key(__FUNCTION__, $columns, $name);
}
......@@ -101,7 +101,7 @@ class Table {
*
* @param string|array
*/
public function index($columns, $name = null)
public function index($columns, $name)
{
return $this->key(__FUNCTION__, $columns, $name);
}
......@@ -114,7 +114,7 @@ class Table {
* @param string $name
* @return Fluent
*/
public function key($type, $columns, $name = null)
public function key($type, $columns, $name)
{
$parameters = array('name' => $name, 'columns' => (array) $columns);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment