From 90618536660ca68fb5a9d8acec8d5d8bca2c80a0 Mon Sep 17 00:00:00 2001 From: Taras Machyshyn Date: Tue, 28 Apr 2020 17:35:45 +0300 Subject: [PATCH] DBAL: bug fixes --- application/Espo/Core/Utils/Database/DBAL/Schema/Comparator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; } }