You are here

function taxonomy_entity_index_update_7002 in Taxonomy Entity Index 7

Add the bundle field and an index on field name, entity type, and bundle.

File

./taxonomy_entity_index.install, line 118

Code

function taxonomy_entity_index_update_7002() {

  // Add the bundle field.
  db_add_field('taxonomy_entity_index', 'bundle', array(
    'description' => 'The entity bundle this term is attached to.',
    'type' => 'varchar',
    'length' => 128,
    'not null' => TRUE,
    'default' => '',
  ));

  // Add the field_instance index.
  db_add_index('taxonomy_entity_index', 'field_instance', array(
    'field_name',
    'entity_type',
    'bundle',
  ));
}