Skip to content

Commit

Permalink
Loosen column comparison
Browse files Browse the repository at this point in the history
Columns don't need to be the same type to be considered equal, as long
as their declarations yield the same SQL.
  • Loading branch information
greg0ire committed Jan 23, 2022
1 parent 07c7297 commit 8eef2d3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Platforms/AbstractPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -2546,10 +2546,6 @@ public function columnsEqual(Column $column1, Column $column2): bool
return true;
}

if ($column1->getComment() !== $column2->getComment()) {
return false;
}

return $column1->getType() === $column2->getType();
return $column1->getComment() === $column2->getComment();
}
}

0 comments on commit 8eef2d3

Please sign in to comment.