Skip to content

Commit c1de1d6

Browse files
committed
Merge pull request laravel#728 from AndrewBNZ/master
Fix in sqlserver grammar primary key function
2 parents 639d64c + b4b9c1f commit c1de1d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/database/schema/grammars/sqlserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function primary(Table $table, Fluent $command)
138138
{
139139
$name = $command->name;
140140

141-
$columns = $this->columnize($columns);
141+
$columns = $this->columnize($command->$columns);
142142

143143
return 'ALTER TABLE '.$this->wrap($table)." ADD CONSTRAINT {$name} PRIMARY KEY ({$columns})";
144144
}

0 commit comments

Comments
 (0)