function search_file_attachments_schema in Search File Attachments 7
Implements hook_schema().
File
- ./
search_file_attachments.install, line 106 - Module install
Code
function search_file_attachments_schema() {
$schema['search_file_attachments_index'] = array(
'description' => 'Stores the extracted content from files',
'fields' => array(
'fid' => array(
'description' => 'The {file_managed}.fid being referenced to a file.',
'type' => 'int',
'not null' => FALSE,
'unsinged' => TRUE,
),
'content' => array(
'description' => 'The extracted content fromt the file.',
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
),
),
'indexes' => array(
'fid' => array(
'fid',
),
),
'foreign keys' => array(
'fid' => array(
'table' => 'file_managed',
'columns' => array(
'fid' => 'fid',
),
),
),
);
return $schema;
}