EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Fix fulltext table name
Yuriiaf68927a52bb
diff --git a/application/Espo/Core/Utils/Database/Dbal/Platforms/PostgreSQLSchemaManager.php b/application/Espo/Core/Utils/Database/Dbal/Platforms/PostgreSQLSchemaManager.phpindex f48e8ffec2..02c8e89c7c 100644--- a/application/Espo/Core/Utils/Database/Dbal/Platforms/PostgreSQLSchemaManager.php+++ b/application/Espo/Core/Utils/Database/Dbal/Platforms/PostgreSQLSchemaManager.php@@ -98,6 +98,10 @@ class PostgreSQLSchemaManager extends BasePostgreSQLSchemaManagerforeach ($rows as $row) {$key = $row['relname'];+ if (str_starts_with($tableName, '"')) {+ $tableName = substr($tableName, 1, -1);+ }+if ($key !== "idx_{$tableName}_system_full_text_search") {continue;}