function fancy_file_delete_schema in Fancy File Delete 7
Same name and namespace in other branches
- 8 fancy_file_delete.install \fancy_file_delete_schema()
Implements hook_schema().
File
- ./
fancy_file_delete.install, line 31 - Install File for Fancy File Delete.
Code
function fancy_file_delete_schema() {
$schema = array();
$schema['unmanaged_files'] = array(
'description' => 'Ironically adding Unmanaged files to the DB so we can use this to delete the files.',
'fields' => array(
'unfid' => array(
'description' => 'The primary identifier for the entity.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'path' => array(
'description' => 'The path of the file.',
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
),
),
'primary key' => array(
'unfid',
),
);
return $schema;
}