rebuild: force all for pg

This commit is contained in:
Yuri Kuznetsov
2024-12-03 14:45:19 +02:00
parent 4c5791110c
commit fc632e1ade
2 changed files with 7 additions and 5 deletions

View File

@@ -29,7 +29,6 @@
namespace Espo\Controllers;
use Espo\Core\Utils\Config;
use Espo\Entities\User;
use Espo\Tools\FieldManager\FieldManager as FieldManagerTool;
use Espo\Core\Api\Request;
@@ -51,7 +50,6 @@ class FieldManager
private User $user,
private DataManager $dataManager,
private FieldManagerTool $fieldManagerTool,
private Config $config
) {
$this->checkControllerAccess();
}
@@ -206,8 +204,6 @@ class FieldManager
*/
private function rebuild(string $scope): void
{
$argument = $this->config->get('database.platform') === 'Postgresql' ? null : [$scope];
$this->dataManager->rebuild($argument);
$this->dataManager->rebuild([$scope]);
}
}