You are here

function image_field_caption_schema in Image Field Caption 7

Same name and namespace in other branches
  1. 8 image_field_caption.install \image_field_caption_schema()
  2. 7.2 image_field_caption.install \image_field_caption_schema()

Implements hook_schema().

File

./image_field_caption.install, line 6

Code

function image_field_caption_schema() {
  $schema['image_field_caption'] = array(
    'description' => 'The base table for the image_field_caption module.',
    'fields' => array(
      'fid' => array(
        'description' => 'The file id.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'caption' => array(
        'description' => 'The caption text.',
        'type' => 'text',
        'not null' => TRUE,
      ),
    ),
    'unique keys' => array(
      'fid' => array(
        'fid',
      ),
    ),
  );
  return $schema;
}