You are here

function fieldset_helper_schema in Fieldset helper 7.2

Same name and namespace in other branches
  1. 6.2 fieldset_helper.install \fieldset_helper_schema()
  2. 6 fieldset_helper.install \fieldset_helper_schema()

Implements hook_schema().

File

./fieldset_helper.install, line 71
Installation information for the 'Fieldset helper' module.

Code

function fieldset_helper_schema() {

  // Learn more at http://api.drupal.org/api/function/hook_schema
  return array(
    'fieldset_helper_state_manager' => array(
      'description' => 'Table to save a short numeric lookup id for a DOM element',
      'fields' => array(
        'id' => array(
          'description' => 'The unique id',
          'type' => 'serial',
          // auto increment
          'unsigned' => TRUE,
          'not null' => TRUE,
        ),
        'path' => array(
          'description' => "A drupal path",
          'type' => 'varchar',
          'length' => 255,
          'not null' => TRUE,
        ),
        'element_id' => array(
          'description' => "The unique DOM element id.",
          'type' => 'varchar',
          'length' => 255,
          'not null' => TRUE,
        ),
      ),
      'primary key' => array(
        'id',
      ),
      'indexes' => array(
        'path' => array(
          'path',
        ),
      ),
    ),
  );
}