Commit b8650f17 authored by catch's avatar catch
Browse files

Issue #3325295 by daffie, Arantxio: Update minumum version for PostgreSQL in code

(cherry picked from commit 31132a95)
parent d0a19e9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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];
      }
    }
+2 −2
Original line number Diff line number Diff line
@@ -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}
+1 −1
Original line number Diff line number Diff line
@@ -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.