1.20.x config_database_storage.inc | protected ConfigDatabaseStorage::schema($name) |
File
- drivers/
config_database/ config_database_storage.inc, line 44
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 full key. Would be the filename in the ConfigFileStore, minus the .json extension',
),
'data' => array(
'type' => 'text',
'not null' => TRUE,
'description' => 'The JSON encoded value for the key.',
),
'ctime' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'The node changed time (see stat(2) for details.)',
),
),
'primary key' => array('name'),
);
return $schema;
}