Skip to content

Commit b1c4a60

Browse files
author
catch
committed
Issue #3325295 by daffie, Arantxio: Update minumum version for PostgreSQL in code
1 parent e8b2968 commit b1c4a60

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/pgsql/src/Driver/Database/pgsql/Insert.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function __toString() {
140140
$table_information = $this->connection->schema()->queryTableInformation($this->table);
141141
if (isset($table_information->serial_fields[0])) {
142142
// Use RETURNING syntax to get the last insert ID in the same INSERT
143-
// query, see https://www.postgresql.org/docs/10/dml-returning.html.
143+
// query, see https://www.postgresql.org/docs/12/dml-returning.html.
144144
$query .= ' RETURNING ' . $table_information->serial_fields[0];
145145
}
146146
}

modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class Tasks extends InstallTasks {
1616
*
1717
* The contrib extension pg_trgm is supposed to be installed.
1818
*
19-
* @see https://www.postgresql.org/docs/10/pgtrgm.html
19+
* @see https://www.postgresql.org/docs/12/pgtrgm.html
2020
*/
21-
const PGSQL_MINIMUM_VERSION = '10';
21+
const PGSQL_MINIMUM_VERSION = '12';
2222

2323
/**
2424
* {@inheritdoc}

modules/pgsql/src/Driver/Database/pgsql/Schema.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ public function fieldExists($table, $column) {
706706
* {@inheritdoc}
707707
*/
708708
public function indexExists($table, $name) {
709-
// Details https://www.postgresql.org/docs/10/view-pg-indexes.html
709+
// Details https://www.postgresql.org/docs/12/view-pg-indexes.html
710710
$index_name = $this->ensureIdentifiersLength($table, $name, 'idx');
711711
// Remove leading and trailing quotes because the index name is in a WHERE
712712
// clause and not used as an identifier.

0 commit comments

Comments
 (0)