SchemaIncompleteException

An exception thrown when a config schema is incomplete. Hierarchy class \Drupal\Core\Config\Schema\SchemaIncompleteException extends \RuntimeException File core/lib/Drupal/Core/Config/Schema/SchemaIncompleteException.php, line 8 Namespace Drupal\Core\Config\Schema Members

SchemaException

Base exception for Schema-related errors. Hierarchy class \Drupal\Core\Database\SchemaException extends \RuntimeException implements DatabaseException File core/lib/Drupal/Core/Database/SchemaException.php, line 8 Namespace Drupal\Core\Database Members

Schema::__construct

public Schema::__construct($connection) File core/lib/Drupal/Core/Database/Schema.php, line 41 Class Schema Provides a base implementation for Database Schema. Namespace Drupal\Core\Database Code public function __construct($connection) { $this->uniqueIdentifier = uniqid('', TRUE); $this->connection = $connection; }

Schema::__clone

public Schema::__clone() Implements the magic __clone function. File core/lib/Drupal/Core/Database/Schema.php, line 49 Class Schema Provides a base implementation for Database Schema. Namespace Drupal\Core\Database Code public function __clone() { $this->uniqueIdentifier = uniqid('', TRUE); }

Schema::_createKeySql

protected Schema::_createKeySql($fields) File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 407 Class Schema PostgreSQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\pgsql Code protected function _createKeySql($fields) { $return = array(); foreach ($fields as $field) { if (is_array($field)) { $return[] = 'substr(' . $field[0] . ', 1, ' . $field[1] . ')'; } else { $return[] = '"' . $field . '"'; } }

Schema::_createKeys

protected Schema::_createKeys($table, $new_keys) File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 804 Class Schema PostgreSQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\pgsql Code protected function _createKeys($table, $new_keys) { if (isset($new_keys['primary key'])) { $this->addPrimaryKey($table, $new_keys['primary key']); } if (isset($new_keys['unique keys'])) { foreach ($new_keys['unique keys'] as $name =&g

Schema::_createIndexSql

protected Schema::_createIndexSql($table, $name, $fields) File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 798 Class Schema PostgreSQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\pgsql Code protected function _createIndexSql($table, $name, $fields) { $query = 'CREATE INDEX ' . $this->ensureIdentifiersLength($table, $name, 'idx') . ' ON {' . $table . '} ('; $query .= $this->_createKeySql($fields) . ')'; return $query;

Schema::uniqueIdentifier

public Schema::uniqueIdentifier() Returns a unique identifier for this object. Overrides PlaceholderInterface::uniqueIdentifier File core/lib/Drupal/Core/Database/Schema.php, line 56 Class Schema Provides a base implementation for Database Schema. Namespace Drupal\Core\Database Code public function uniqueIdentifier() { return $this->uniqueIdentifier; }

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/pgsql/Schema.php, line 443 Class Schema PostgreSQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\pgsql Code public function tableExists($table) { $prefixInfo = $this->getPrefixInfo($

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/sqlite/Schema.php, line 25 Class Schema SQLite implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\sqlite Code public function tableExists($table) { $info = $this->getPrefixInfo($table);