You are here

function fancy_file_delete_schema in Fancy File Delete 8

Same name and namespace in other branches
  1. 7 fancy_file_delete.install \fancy_file_delete_schema()

Implements hook_schema().

File

./fancy_file_delete.install, line 21
Install File for Fancy File Delete.

Code

function fancy_file_delete_schema() {
  $schema = [];
  $schema['unmanaged_files'] = [
    'description' => 'Ironically adding Unmanaged files to the DB so we can use this to delete the files.',
    'fields' => [
      'unfid' => [
        'description' => 'The primary identifier for the entity.',
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ],
      'path' => [
        'description' => 'The path of the file.',
        'type' => 'text',
        'size' => 'big',
        'serialize' => TRUE,
        'object default' => [],
      ],
    ],
    'primary key' => [
      'unfid',
    ],
  ];
  return $schema;
}