Fixed typo from previous fix, should be $command->columns not $command->$columns.

This commit is contained in:
AndrewBNZ 2012-06-03 23:51:38 +12:00
parent b4b9c1f442
commit c8466f5766
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; $name = $command->name;
$columns = $this->columnize($command->$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})";
} }