protected static function DatabaseStorage::schemaDefinition

protected static DatabaseStorage::schemaDefinition()

Defines the schema for the configuration table.

File

core/lib/Drupal/Core/Config/DatabaseStorage.php, line 184

Class

DatabaseStorage
Defines the Database storage.

Namespace

Drupal\Core\Config

Code

protected static function schemaDefinition() {
  $schema = array(
    'description' => 'The base table for configuration data.',
    'fields' => array(
      'collection' => array(
        'description' => 'Primary Key: Config object collection.',
        'type' => 'varchar_ascii',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'name' => array(
        'description' => 'Primary Key: Config object name.',
        'type' => 'varchar_ascii',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'data' => array(
        'description' => 'A serialized configuration object data.',
        'type' => 'blob',
        'not null' => FALSE,
        'size' => 'big',
      ),
    ),
    'primary key' => array('collection', 'name'),
  );
  return $schema;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!DatabaseStorage.php/function/DatabaseStorage::schemaDefinition/8.1.x