You are here

function flag_update_7203 in Flag 7.2

Same name and namespace in other branches
  1. 7.3 flag.install \flag_update_7203()

Add an index to help with view's flag_handler_relationship when not required.

File

./flag.install, line 487
Flag module install/schema/update hooks.

Code

function flag_update_7203() {

  // Skip if this index was also added by the 6.x-2.x branch.
  if (!db_index_exists('flag_content', 'content_id_fid')) {
    db_add_index('flag_content', 'content_id_fid', array(
      'content_id',
      'fid',
    ));
  }
}