Skip to content

Commit

Permalink
Merge pull request #27115 from b-stavitskiy/5.7
Browse files Browse the repository at this point in the history
[5.7] Bug fix for Blueprint method removeColumn
  • Loading branch information
taylorotwell authored Jan 10, 2019
2 parents 79143b4 + 52def92 commit 348c447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ public function addColumn($type, $name, array $parameters = [])
public function removeColumn($name)
{
$this->columns = array_values(array_filter($this->columns, function ($c) use ($name) {
return $c['attributes']['name'] != $name;
return $c['name'] != $name;
}));

return $this;
Expand Down

0 comments on commit 348c447

Please sign in to comment.