Fixes Laravel issue #727 - updated sqlserver grammar file to fix error in primary key function.
This commit is contained in:
@@ -138,7 +138,7 @@ class SQLServer extends Grammar {
|
|||||||
{
|
{
|
||||||
$name = $command->name;
|
$name = $command->name;
|
||||||
|
|
||||||
$columns = $this->columnize($columns);
|
$columns = $this->columnize($command->$columns);
|
||||||
|
|
||||||
return 'ALTER TABLE '.$this->wrap($table)." ADD CONSTRAINT {$name} PRIMARY KEY ({$columns})";
|
return 'ALTER TABLE '.$this->wrap($table)." ADD CONSTRAINT {$name} PRIMARY KEY ({$columns})";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user