1 config.inc protected ConfigDatabaseStorage::schema($name)

The database schema.

File

core/includes/config.inc, line 1282
This is the API for configuration storage.

Class

ConfigDatabaseStorage
Defines the database storage controller.

Code

protected function schema($name) {
  $schema = array(
    'description' => 'Stores the configuration of the site in database tables.',
    'fields' => array(
      'name' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'description' => 'The top-level name for the config item. Would be the filename in the ConfigFileStore, minus the .json extension.',
      ),
      'data' => array(
        'type' => 'text',
        'size' => 'big',
        'not null' => TRUE,
        'description' => 'The JSON encoded value of the config item. Same as the contents of a config .json file.',
      ),
      'changed' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => 'The timestamp this config item was last changed',
      ),
    ),
    'primary key' => array('name'),
  );

  return $schema;
}