Move method into grammar.php instead of duplicating in each grammar
This commit is contained in:
@@ -85,21 +85,6 @@ class SQLServer 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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user