diff options
author | Robin Appelman <robin@icewind.nl> | 2021-08-26 14:25:17 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-10-08 18:39:22 +0200 |
commit | 695326534c18749f36e9172e7b7345824213ee60 (patch) | |
tree | cc3238eeb2a0a39d4a399f664300e2c6560424fd /lib/public/DB | |
parent | abd6b354acc7e930302ffacb2a7ec92dd88fcad7 (diff) | |
download | nextcloud-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 'lib/public/DB')
-rw-r--r-- | lib/public/DB/ISchemaWrapper.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/public/DB/ISchemaWrapper.php b/lib/public/DB/ISchemaWrapper.php index 2031f807e76..82e4205f1b3 100644 --- a/lib/public/DB/ISchemaWrapper.php +++ b/lib/public/DB/ISchemaWrapper.php @@ -22,6 +22,9 @@ */ namespace OCP\DB; +use Doctrine\DBAL\Exception; +use Doctrine\DBAL\Platforms\AbstractPlatform; + /** * Interface ISchemaWrapper * @@ -81,7 +84,7 @@ interface ISchemaWrapper { * @since 13.0.0 */ public function getTableNames(); - + /** * Gets all table names * @@ -89,4 +92,14 @@ interface ISchemaWrapper { * @since 13.0.0 */ public function getTableNamesWithoutPrefix(); + + /** + * Gets the DatabasePlatform for the database. + * + * @return AbstractPlatform + * + * @throws Exception + * @since 23.0.0 + */ + public function getDatabasePlatform(); } |