Merge pull request #728 from AndrewBNZ/master

Fix in sqlserver grammar primary key function
This commit is contained in:
Taylor Otwell
2012-05-30 06:20:13 -07:00

View File

@@ -138,7 +138,7 @@ class SQLServer extends Grammar {
{
$name = $command->name;
$columns = $this->columnize($columns);
$columns = $this->columnize($command->$columns);
return 'ALTER TABLE '.$this->wrap($table)." ADD CONSTRAINT {$name} PRIMARY KEY ({$columns})";
}