You are here

function apachesolr_attachments_update_7005 in Apache Solr Attachments 7

Add cache bin, and remove the 'body' field from the indexer table.

See also

https://www.drupal.org/node/1936662#comment-9158875

File

./apachesolr_attachments.install, line 286
Install, update and uninstall functions for the apachesolr_attachments module.

Code

function apachesolr_attachments_update_7005() {
  $schema = apachesolr_attachments_schema();
  $table = 'cache_apachesolr_attachments_file_body';
  if (!db_table_exists($table)) {
    db_create_table($table, $schema[$table]);
    db_drop_field('apachesolr_index_entities_file', 'body');
  }
}