summaryrefslogtreecommitdiffstats
path: root/core/Application.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-08-26 14:25:17 +0200
committerRobin Appelman <robin@icewind.nl>2021-10-08 18:39:22 +0200
commit695326534c18749f36e9172e7b7345824213ee60 (patch)
treecc3238eeb2a0a39d4a399f664300e2c6560424fd /core/Application.php
parentabd6b354acc7e930302ffacb2a7ec92dd88fcad7 (diff)
downloadnextcloud-server-695326534c18749f36e9172e7b7345824213ee60.tar.gz
nextcloud-server-695326534c18749f36e9172e7b7345824213ee60.zip
disable path prefix index on postgresql for now
having the index work properly for the queries we need it for requires some additional options which dbal does not support at the momement. to prevent making it harder to add the correct index later on we don't create the index for now on postgresql Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Application.php b/core/Application.php
index 06c3cc67b93..d987f7cfb17 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -31,6 +31,7 @@
*/
namespace OC\Core;
+use Doctrine\DBAL\Platforms\PostgreSQL94Platform;
use OC\Authentication\Events\RemoteWipeFinished;
use OC\Authentication\Events\RemoteWipeStarted;
use OC\Authentication\Listeners\RemoteWipeActivityListener;
@@ -119,7 +120,7 @@ class Application extends App {
$subject->addHintForMissingSubject($table->getName(), 'fs_id_storage_size');
}
- if (!$table->hasIndex('fs_storage_path_prefix')) {
+ if (!$table->hasIndex('fs_storage_path_prefix') && !$schema->getDatabasePlatform() instanceof PostgreSQL94Platform) {
$subject->addHintForMissingSubject($table->getName(), 'fs_storage_path_prefix');
}
}