From 99fb897b633eb9ec60cb2c5a7839b3e1e524efc1 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 30 Jan 2023 21:37:43 +0200 Subject: [PATCH] cleanup --- .../Espo/Core/Utils/Database/DBAL/Traits/Schema/Comparator.php | 2 -- application/Espo/Core/Utils/Database/Schema/SchemaManager.php | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) 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); }