function gathercontent_schema in GatherContent 7.2
Same name and namespace in other branches
- 8.5 gathercontent.install \gathercontent_schema()
- 7.3 gathercontent.install \gathercontent_schema()
Implements hook_schema().
File
- ./
gathercontent.install, line 45 - Install, uninstall, and update functions for the GatherContent module.
Code
function gathercontent_schema() {
$schema['gathercontent_media'] = array(
'description' => 'Contains media file IDs to prevent multiple downloads',
'fields' => array(
'fid' => array(
'description' => 'Drupal file fid from the file_managed table',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'gid' => array(
'description' => 'GatherContent file ID',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'unique keys' => array(
'fid' => array(
'fid',
),
'gid' => array(
'gid',
),
),
);
return $schema;
}