You are here

function apachesolr_update_6301 in Apache Solr Search 6.3

Remove status from the key.

File

./apachesolr.install, line 298
Install and related hooks for apachesolr_search.

Code

function apachesolr_update_6301() {
  $ret = array();

  // check if old tables are present and remove them
  if (!db_table_exists('apachesolr_search_node')) {
    $types = array(
      'other' => 'apachesolr_index_entities',
      'node' => 'apachesolr_index_entities_node',
    );
    foreach ($types as $type => $table) {
      db_drop_index($ret, $table, 'changed');
      db_add_index($ret, $table, 'bundle_changed', array(
        'bundle',
        'changed',
      ));
    }
  }
  return $ret;
}