From 31132a95572e29efb24faf04705f4042f70c020b Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Mon, 5 Dec 2022 13:50:14 +0000 Subject: [PATCH] Issue #3325295 by daffie, Arantxio: Update minumum version for PostgreSQL in code --- core/modules/pgsql/src/Driver/Database/pgsql/Insert.php | 2 +- .../modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php | 4 ++-- core/modules/pgsql/src/Driver/Database/pgsql/Schema.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/modules/pgsql/src/Driver/Database/pgsql/Insert.php b/core/modules/pgsql/src/Driver/Database/pgsql/Insert.php index 3caea783d8f5..52d37c7f105a 100644 --- a/core/modules/pgsql/src/Driver/Database/pgsql/Insert.php +++ b/core/modules/pgsql/src/Driver/Database/pgsql/Insert.php @@ -140,7 +140,7 @@ public function __toString() { $table_information = $this->connection->schema()->queryTableInformation($this->table); if (isset($table_information->serial_fields[0])) { // Use RETURNING syntax to get the last insert ID in the same INSERT - // query, see https://www.postgresql.org/docs/10/dml-returning.html. + // query, see https://www.postgresql.org/docs/12/dml-returning.html. $query .= ' RETURNING ' . $table_information->serial_fields[0]; } } diff --git a/core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php b/core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php index a70afbfdf65a..4f47489287ae 100644 --- a/core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php +++ b/core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php @@ -16,9 +16,9 @@ class Tasks extends InstallTasks { * * The contrib extension pg_trgm is supposed to be installed. * - * @see https://www.postgresql.org/docs/10/pgtrgm.html + * @see https://www.postgresql.org/docs/12/pgtrgm.html */ - const PGSQL_MINIMUM_VERSION = '10'; + const PGSQL_MINIMUM_VERSION = '12'; /** * {@inheritdoc} diff --git a/core/modules/pgsql/src/Driver/Database/pgsql/Schema.php b/core/modules/pgsql/src/Driver/Database/pgsql/Schema.php index 668cda11ebaa..2336d103fa98 100644 --- a/core/modules/pgsql/src/Driver/Database/pgsql/Schema.php +++ b/core/modules/pgsql/src/Driver/Database/pgsql/Schema.php @@ -706,7 +706,7 @@ public function fieldExists($table, $column) { * {@inheritdoc} */ public function indexExists($table, $name) { - // Details https://www.postgresql.org/docs/10/view-pg-indexes.html + // Details https://www.postgresql.org/docs/12/view-pg-indexes.html $index_name = $this->ensureIdentifiersLength($table, $name, 'idx'); // Remove leading and trailing quotes because the index name is in a WHERE // clause and not used as an identifier. -- GitLab