This commit is contained in:
Yuri Kuznetsov
2023-01-30 21:37:43 +02:00
parent f6e7da57f7
commit 99fb897b63
2 changed files with 1 additions and 4 deletions
@@ -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
{
@@ -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);
}