Schema::indexExists

public Schema::indexExists($table, $name) Checks if an index exists in the given table. Parameters $table: The name of the table in drupal (no prefixing). $name: The name of the index in drupal (no prefixing). Return value TRUE if the given index exists, otherwise FALSE. Overrides Schema::indexExists File core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php, line 617 Class Schema SQLite implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\sqlite Cod

Schema::indexExists

public Schema::indexExists($table, $name) Checks if an index exists in the given table. Parameters $table: The name of the table in drupal (no prefixing). $name: The name of the index in drupal (no prefixing). Return value TRUE if the given index exists, otherwise FALSE. Overrides Schema::indexExists File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 450 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\mysql Code p

Schema::indexExists

abstract public Schema::indexExists($table, $name) Checks if an index exists in the given table. Parameters $table: The name of the table in drupal (no prefixing). $name: The name of the index in drupal (no prefixing). Return value TRUE if the given index exists, otherwise FALSE. File core/lib/Drupal/Core/Database/Schema.php, line 378 Class Schema Provides a base implementation for Database Schema. Namespace Drupal\Core\Database Code abstract public function indexExists($table, $name

Schema::hashBase64

protected Schema::hashBase64($data) Calculates a base-64 encoded, PostgreSQL-safe sha-256 hash per PostgreSQL documentation: 4.1. Lexical Structure. Parameters $data: String to be hashed. Return value string A base-64 encoded sha-256 hash, with + and / replaced with _ and any = padding characters removed. File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 847 Class Schema PostgreSQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\pgs

Schema::getPrefixInfo

protected Schema::getPrefixInfo($table = 'default', $add_prefix = TRUE) Get information about the table and database name from the prefix. Return value A keyed array with information about the database, table name and prefix. Overrides Schema::getPrefixInfo File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 51 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\mysql Code protected function getPrefixInfo($table = 'defa

Schema::getPrefixInfo

protected Schema::getPrefixInfo($table = 'default', $add_prefix = TRUE) Get information about the table name and schema from the prefix. Parameters Name of table to look prefix up for. Defaults to 'default' because that's: default key for prefix. $add_prefix: Boolean that indicates whether the given table name should be prefixed. Return value A keyed array with information about the schema, table name and prefix. File core/lib/Drupal/Core/Database/Schema.php, line 79 Class Schema Provid

Schema::getNormalizedIndexes

protected Schema::getNormalizedIndexes(array $spec) Gets normalized indexes from a table specification. Shortens indexes to 191 characters if they apply to utf8mb4-encoded fields, in order to comply with the InnoDB index limitation of 756 bytes. Parameters array $spec: The table specification. Return value array List of shortened indexes. Throws \Drupal\Core\Database\SchemaException Thrown if field specification is missing. File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 308

Schema::getFieldTypeMap

Schema::getFieldTypeMap() This maps a generic data type in combination with its data size to the engine-specific data type. Overrides Schema::getFieldTypeMap File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 364 Class Schema PostgreSQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\pgsql Code function getFieldTypeMap() { // Put :normal last so it gets preserved by array_flip. This makes // it much easier for modules (such as sch

Schema::getFieldTypeMap

public Schema::getFieldTypeMap() This maps a generic data type in combination with its data size to the engine-specific data type. Overrides Schema::getFieldTypeMap File core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php, line 207 Class Schema SQLite implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\sqlite Code public function getFieldTypeMap() { // Put :normal last so it gets preserved by array_flip. This makes // it much easier for modules

Schema::getFieldTypeMap

public Schema::getFieldTypeMap() Returns a mapping of Drupal schema field names to DB-native field types. Because different field types do not map 1:1 between databases, Drupal has its own normalized field type names. This function returns a driver-specific mapping table from Drupal names to the native names for each database. Return value array An array of Schema API field types to driver-specific field types. Overrides Schema::getFieldTypeMap File core/lib/Drupal/Core/Database/Driver/mysql/S