You are here

function configuration_schema in Configuration Management 7.2

Same name and namespace in other branches
  1. 7 configuration.install \configuration_schema()

Implements hook_schema().

File

./configuration.install, line 11
Install, update and uninstall functions for the configuration module.

Code

function configuration_schema() {
  $schema['configuration_tracked'] = array(
    'description' => 'Default active store for the configuration system.',
    'fields' => array(
      'component' => array(
        'description' => 'The component that this configuration belongs).',
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'default' => '',
      ),
      'identifier' => array(
        'description' => 'The identifier for the configuration entry, such as module.example (the name of the file, minus the file extension and the component).',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'hash' => array(
        'description' => 'A sha1 hash that respresent the configuration. Used to track differences between the ActiveStore, DataStore and tracked area.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'file' => array(
        'description' => 'The name of the file that storage the configuration in the config directory.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'component',
      'identifier',
    ),
  );
  return $schema;
}