EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Ref
Yuriibe959dbf7030
diff --git a/application/Espo/Core/Utils/Database/Schema/DiffModifier.php b/application/Espo/Core/Utils/Database/Schema/DiffModifier.phpindex 7c3d58e88b..1c3095f290 100644--- a/application/Espo/Core/Utils/Database/Schema/DiffModifier.php+++ b/application/Espo/Core/Utils/Database/Schema/DiffModifier.php@@ -40,6 +40,7 @@ use Doctrine\DBAL\Types\Type;use Doctrine\DBAL\Types\Types;use Espo\Core\Utils\Database\Dbal\Types\LongtextType;use Espo\Core\Utils\Database\Dbal\Types\MediumtextType;+use Espo\ORM\Name\Attribute;class DiffModifier{@@ -51,7 +52,7 @@ class DiffModifierSchemaDiff $diff,Schema $schema,bool $secondRun = false,- string $mode = RebuildMode::SOFT+ string $mode = RebuildMode::SOFT,): bool {$reRun = false;@@ -138,7 +139,7 @@ class DiffModifierreturn;}- if (!in_array('length', $columnDiff->changedProperties)) {+ if (!$columnDiff->hasLengthChanged()) {return;}@@ -166,7 +167,7 @@ class DiffModifierreturn;}- if (!in_array('type', $columnDiff->changedProperties)) {+ if (!$columnDiff->hasTypeChanged()) {return;}@@ -255,7 +256,7 @@ class DiffModifierreturn false;}- if (!in_array('autoincrement', $columnDiff->changedProperties)) {+ if (!$columnDiff->hasAutoIncrementChanged()) {return false;}@@ -264,7 +265,7 @@ class DiffModifier->setNotnull(false)->setDefault(null);- if ($name === 'id') {+ if ($name === Attribute::ID) {$column->setNotnull(true);}