diff --git a/application/Espo/Core/Utils/Database/DBAL/Traits/Schema/Comparator.php b/application/Espo/Core/Utils/Database/DBAL/Traits/Schema/Comparator.php index d185323ef8..1f67bd7255 100644 --- a/application/Espo/Core/Utils/Database/DBAL/Traits/Schema/Comparator.php +++ b/application/Espo/Core/Utils/Database/DBAL/Traits/Schema/Comparator.php @@ -31,8 +31,6 @@ namespace Espo\Core\Utils\Database\DBAL\Traits\Schema; use Doctrine\DBAL\Schema\Column; use Doctrine\DBAL\Types\TextType; -use Espo\Core\Utils\Database\DBAL\Types\LongtextType; -use Espo\Core\Utils\Database\DBAL\Types\MediumtextType; trait Comparator { diff --git a/application/Espo/Core/Utils/Database/Schema/SchemaManager.php b/application/Espo/Core/Utils/Database/Schema/SchemaManager.php index d52953d4b6..cf7c75fe03 100644 --- a/application/Espo/Core/Utils/Database/Schema/SchemaManager.php +++ b/application/Espo/Core/Utils/Database/Schema/SchemaManager.php @@ -184,11 +184,10 @@ class SchemaManager * Get SQL queries to get from one to another schema. * * @return string[] Array of SQL queries. - * @throws SchemaException */ private function getDiffSql(DbalSchema $fromSchema, DbalSchema $toSchema) { - $schemaDiff = $this->comparator->compare($fromSchema, $toSchema); + $schemaDiff = $this->comparator->compareSchemas($fromSchema, $toSchema); return $this->toSql($schemaDiff); }