Unsigned only supported by MySQL.

Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
This commit is contained in:
Taylor Otwell
2012-03-04 14:28:49 -06:00
parent f3df013753
commit 46595ce55e
5 changed files with 18 additions and 18 deletions

View File

@@ -90,6 +90,21 @@ class MySQL extends Grammar {
return $columns;
}
/**
* Get the SQL syntax for indicating if a column is unsigned.
*
* @param Table $table
* @param Fluent $column
* @return string
*/
protected function unsigned(Table $table, Fluent $column)
{
if ($column->type == 'integer' && $column->unsigned)
{
return ' UNSIGNED';
}
}
/**
* Get the SQL syntax for indicating if a column is nullable.
*