function features_schema in Features 7.2
Implements hook_schema().
File
- ./
features.install, line 11 - Install, update and uninstall functions for the features module.
Code
function features_schema() {
$schema['cache_features'] = drupal_get_schema_unprocessed('system', 'cache');
$schema['cache_features']['description'] = 'Cache table for features to store module info.';
$schema['features_signature'] = array(
'description' => 'Stores hashes that reflect the last known state of a features component.',
'fields' => array(
'module' => array(
'description' => 'Name of the feature module.',
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
),
'component' => array(
'description' => 'Name of the features component.',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
),
'signature' => array(
'description' => 'Hash reflecting the last approved state of the component in code.',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
),
'updated' => array(
'description' => 'Timestamp when the signature was last updated.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'message' => array(
'description' => 'Message to document why the component was updated.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'primary key' => array(
'module',
'component',
),
'indexes' => array(
'module' => array(
'module',
),
'component' => array(
'component',
),
),
);
return $schema;
}