diff --git a/application/Espo/Core/Utils/Database/Schema/Converter.php b/application/Espo/Core/Utils/Database/Schema/Converter.php index 5b9358a1a3..9092300b15 100644 --- a/application/Espo/Core/Utils/Database/Schema/Converter.php +++ b/application/Espo/Core/Utils/Database/Schema/Converter.php @@ -208,7 +208,7 @@ class Converter $schema = $this->getSchema(true); - $indexList = SchemaUtils::getIndexList($ormMeta); + $indexes = SchemaUtils::getIndexes($ormMeta); $tables = []; @@ -278,8 +278,8 @@ class Converter $tables[$entityName]->setPrimaryKey($primaryColumns); - if (!empty($indexList[$entityName])) { - $this->addIndexes($tables[$entityName], $indexList[$entityName]); + if (!empty($indexes[$entityName])) { + $this->addIndexes($tables[$entityName], $indexes[$entityName]); } } @@ -402,7 +402,7 @@ class Converter // add defined indexes if (!empty($relationParams['indexes'])) { - $normalizedIndexes = SchemaUtils::getIndexList([ + $normalizedIndexes = SchemaUtils::getIndexes([ $entityName => [ 'fields' => [], 'indexes' => $relationParams['indexes'], diff --git a/application/Espo/Core/Utils/Database/Schema/Utils.php b/application/Espo/Core/Utils/Database/Schema/Utils.php index b9729d7b4d..349493cd1b 100644 --- a/application/Espo/Core/Utils/Database/Schema/Utils.php +++ b/application/Espo/Core/Utils/Database/Schema/Utils.php @@ -33,7 +33,7 @@ use Espo\Core\Utils\Util; class Utils { - public static function getIndexList(array $ormMeta, array $ignoreFlags = []) + public static function getIndexes(array $ormMeta, array $ignoreFlags = []) { $indexList = []; @@ -199,7 +199,7 @@ class Utils $fields = []; if (!isset($indexList)) { - $indexList = static::getIndexList($ormMeta, ['fulltext']); + $indexList = static::getIndexes($ormMeta, ['fulltext']); } foreach ($indexList as $entityName => $indexes) {