function Schema::resetTableInformation

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php \Drupal\Core\Database\Driver\pgsql\Schema::resetTableInformation()
  2. 10 core/modules/pgsql/src/Driver/Database/pgsql/Schema.php \Drupal\pgsql\Driver\Database\pgsql\Schema::resetTableInformation()
  3. 11.x core/modules/pgsql/src/Driver/Database/pgsql/Schema.php \Drupal\pgsql\Driver\Database\pgsql\Schema::resetTableInformation()

Resets information about table blobs, sequences and serial fields.

Parameters

$table: The non-prefixed name of the table.

11 calls to Schema::resetTableInformation()
Schema::addField in core/modules/pgsql/src/Driver/Database/pgsql/Schema.php
Add a new field to a table.
Schema::addIndex in core/modules/pgsql/src/Driver/Database/pgsql/Schema.php
Add an index.
Schema::addPrimaryKey in core/modules/pgsql/src/Driver/Database/pgsql/Schema.php
Add a primary key.
Schema::addUniqueKey in core/modules/pgsql/src/Driver/Database/pgsql/Schema.php
Add a unique key.
Schema::changeField in core/modules/pgsql/src/Driver/Database/pgsql/Schema.php
Change a field definition.

... See full list

File

core/modules/pgsql/src/Driver/Database/pgsql/Schema.php, line 208

Class

Schema
PostgreSQL implementation of <a href="/api/drupal/core%21lib%21Drupal%21Core%21Database%21Schema.php/class/Schema/9" title="Provides a base implementation for Database Schema." class="local">\Drupal\Core\Database\Schema</a>.

Namespace

Drupal\pgsql\Driver\Database\pgsql

Code

protected function resetTableInformation($table) {
    $key = $this->connection
        ->prefixTables('{' . $table . '}');
    if (strpos($key, '.') === FALSE) {
        $key = 'public.' . $key;
    }
    unset($this->tableInformation[$key]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.