Schema::getFieldTypeMap

abstract 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. File core/lib/Drupal/Core/Database/Schema.php, line 266 Class Schema

Schema::getComment

public Schema::getComment($table, $column = NULL) Retrieve a table or column comment. File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 826 Class Schema PostgreSQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\pgsql Code public function getComment($table, $column = NULL) { $info = $this->getPrefixInfo($table); // Don't use {} around pg_class, pg_attribute tables. if (isset($column)) { return $this->connection->qu

Schema::getComment

public Schema::getComment($table, $column = NULL) Retrieve a table or column comment. File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 552 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\mysql Code public function getComment($table, $column = NULL) { $condition = $this->buildTableNameCondition($table); if (isset($column)) { $condition->condition('column_name', $column); $condition->compile($th

Schema::findTables

public Schema::findTables($table_expression) Finds all tables that are like the specified base table name. Parameters string $table_expression: An SQL expression, for example "cache_%" (without the quotes). Return value array Both the keys and the values are the matching tables. Overrides Schema::findTables File core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php, line 716 Class Schema SQLite implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\sqli

Schema::findTables

public Schema::findTables($table_expression) Finds all tables that are like the specified base table name. Parameters string $table_expression: An SQL expression, for example "cache_%" (without the quotes). Return value array Both the keys and the values are the matching tables. File core/lib/Drupal/Core/Database/Schema.php, line 183 Class Schema Provides a base implementation for Database Schema. Namespace Drupal\Core\Database Code public function findTables($table_expression) { /

Schema::fieldSetNoDefault

public Schema::fieldSetNoDefault($table, $field) Set a field to have no default value. Parameters $table: The table to be altered. $field: The field to be altered. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table or field doesn't exist. Overrides Schema::fieldSetNoDefault File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 572 Class Schema PostgreSQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\

Schema::fieldSetNoDefault

public Schema::fieldSetNoDefault($table, $field) Set a field to have no default value. Parameters $table: The table to be altered. $field: The field to be altered. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table or field doesn't exist. Overrides Schema::fieldSetNoDefault File core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php, line 701 Class Schema SQLite implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\sql

Schema::fieldSetNoDefault

public Schema::fieldSetNoDefault($table, $field) Set a field to have no default value. Parameters $table: The table to be altered. $field: The field to be altered. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table or field doesn't exist. Overrides Schema::fieldSetNoDefault File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 442 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\mysql

Schema::fieldSetNoDefault

abstract public Schema::fieldSetNoDefault($table, $field) Set a field to have no default value. Parameters $table: The table to be altered. $field: The field to be altered. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table or field doesn't exist. File core/lib/Drupal/Core/Database/Schema.php, line 365 Class Schema Provides a base implementation for Database Schema. Namespace Drupal\Core\Database Code abstract public function fieldSetNoDefault($tabl

Schema::fieldSetDefault

public Schema::fieldSetDefault($table, $field, $default) Set the default value for a field. Parameters $table: The table to be altered. $field: The field to be altered. $default: Default value to be set. NULL for 'default NULL'. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table or field doesn't exist. Overrides Schema::fieldSetDefault File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 562 Class Schema PostgreSQL implementation of \Drupal\