From da17080915ede4a7a41001f2802891759e1dcaf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 22 Jan 2022 19:30:42 +0100 Subject: [PATCH] Loosen column comparison Columns don't need to be the same type to be considered equal, as long as their declarations yield the same SQL. --- src/Platforms/AbstractPlatform.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Platforms/AbstractPlatform.php b/src/Platforms/AbstractPlatform.php index bce1ff01ef9..81c1a0f664b 100644 --- a/src/Platforms/AbstractPlatform.php +++ b/src/Platforms/AbstractPlatform.php @@ -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(); } }