Schema::tableExists

public Schema::tableExists($table) Check if a table exists. Parameters $table: The name of the table in drupal (no prefixing). Return value TRUE if the given table exists, otherwise FALSE. Overrides Schema::tableExists File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 567 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\mysql Code public function tableExists($table) { // The information_schema table is very slow

Schema::tableExists

public Schema::tableExists($table) Check if a table exists. Parameters $table: The name of the table in drupal (no prefixing). Return value TRUE if the given table exists, otherwise FALSE. File core/lib/Drupal/Core/Database/Schema.php, line 163 Class Schema Provides a base implementation for Database Schema. Namespace Drupal\Core\Database Code public function tableExists($table) { $condition = $this->buildTableNameCondition($table); $condition->compile($this->connection,

Schema::shortenIndex

protected Schema::shortenIndex(&$index) Helper function for normalizeIndexes(). Shortens an index to 191 characters. Parameters array $index: The index array to be used in createKeySql. See also Drupal\Core\Database\Driver\mysql\Schema::createKeySql() Drupal\Core\Database\Driver\mysql\Schema::normalizeIndexes() File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 345 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Drive

Schema::resetTableInformation

protected Schema::resetTableInformation($table) Resets information about table blobs, sequences and serial fields. Parameters $table: The non-prefixed name of the table. File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 162 Class Schema PostgreSQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\pgsql Code protected function resetTableInformation($table) { $key = $this->connection->prefixTables('{' . $table . '}'); if (strp

Schema::renameTable

Schema::renameTable($table, $new_name) Rename a table. Parameters $table: The table to be renamed. $new_name: The new name for the table. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table doesn't exist. \Drupal\Core\Database\SchemaObjectExistsException If a table with the specified new name already exists. Overrides Schema::renameTable File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 449 Class Schema PostgreSQL implementation of \Drupal

Schema::renameTable

public Schema::renameTable($table, $new_name) Rename a table. Parameters $table: The table to be renamed. $new_name: The new name for the table. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table doesn't exist. \Drupal\Core\Database\SchemaObjectExistsException If a table with the specified new name already exists. Overrides Schema::renameTable File core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php, line 250 Class Schema SQLite implementation of \Dr

Schema::renameTable

public Schema::renameTable($table, $new_name) Rename a table. Parameters $table: The table to be renamed. $new_name: The new name for the table. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table doesn't exist. \Drupal\Core\Database\SchemaObjectExistsException If a table with the specified new name already exists. Overrides Schema::renameTable File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 369 Class Schema MySQL implementation of \Drup

Schema::renameTable

abstract public Schema::renameTable($table, $new_name) Rename a table. Parameters $table: The table to be renamed. $new_name: The new name for the table. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table doesn't exist. \Drupal\Core\Database\SchemaObjectExistsException If a table with the specified new name already exists. File core/lib/Drupal/Core/Database/Schema.php, line 281 Class Schema Provides a base implementation for Database Schema. Namespace

Schema::queryTableInformation

public Schema::queryTableInformation($table) Fetch the list of blobs and sequences used on a table. We introspect the database to collect the information required by insert and update queries. Parameters $table_name: The non-prefixed name of the table. Return value An object with two member variables: 'blob_fields' that lists all the blob fields in the table. 'sequences' that lists the sequences used in that table. File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 89 Class

Schema::queryFieldInformation

public Schema::queryFieldInformation($table, $field) Fetch the list of CHECK constraints used on a field. We introspect the database to collect the information required by field alteration. Parameters $table: The non-prefixed name of the table. $field: The name of the field. Return value An array of all the checks for the field. File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 183 Class Schema PostgreSQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\