cleanup
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user