Fixes Laravel issue #727 - updated sqlserver grammar file to fix error in primary key function.

This commit is contained in:
AndrewBNZ 2012-05-30 18:42:22 +12:00
parent 639d64c584
commit b4b9c1f442
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ public function primary(Table $table, Fluent $command)
{
$name = $command->name;
$columns = $this->columnize($columns);
$columns = $this->columnize($command->$columns);
return 'ALTER TABLE '.$this->wrap($table)." ADD CONSTRAINT {$name} PRIMARY KEY ({$columns})";
}