You are here

function apachesolr_attachments_update_6000 in Apache Solr Attachments 6

Same name and namespace in other branches
  1. 6.2 apachesolr_attachments.install \apachesolr_attachments_update_6000()

Add sha1 and body fields to {apachesolr_attachments_files}.

File

./apachesolr_attachments.install, line 106

Code

function apachesolr_attachments_update_6000() {
  $ret = array();
  $schema = array(
    'description' => 'file sha1 to check for changes.',
    'type' => 'varchar',
    'length' => 40,
    'not null' => TRUE,
    'default' => '',
  );
  db_add_field($ret, 'apachesolr_attachments_files', 'sha1', $schema);
  $schema = array(
    'description' => 'The cached body (extracted text) of the file (except for text files).',
    'type' => 'text',
    'not null' => FALSE,
    'size' => 'big',
  );
  db_add_field($ret, 'apachesolr_attachments_files', 'body', $schema);
  return $ret;
}