diff --git a/application/Espo/Core/Utils/Database/DBAL/Schema/Comparator.php b/application/Espo/Core/Utils/Database/DBAL/Schema/Comparator.php index 57e8457a7b..30e88721f5 100644 --- a/application/Espo/Core/Utils/Database/DBAL/Schema/Comparator.php +++ b/application/Espo/Core/Utils/Database/DBAL/Schema/Comparator.php @@ -86,7 +86,7 @@ class Comparator extends \Doctrine\DBAL\Schema\Comparator $length1 = $column1->getLength() ?: 16777215/* mediumtext length*/; $length2 = $column2->getLength() ?: 16777215; - if ($length2 > $length1) { + if ($length1 != -1 && $length2 != -1 && $length2 > $length1) { $changedProperties[] = 'length'; } }