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 22, 2022
1 parent 6cb3867 commit da17080
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 @@ -4014,10 +4014,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 da17080

Please sign in to comment.