Fixed typo from previous fix, should be $command->columns not $command->$columns.
This commit is contained in:
parent
b4b9c1f442
commit
c8466f5766
|
@ -138,7 +138,7 @@ public function primary(Table $table, Fluent $command)
|
|||
{
|
||||
$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})";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue