You are here

function flag_update_6204 in Flag 6.2

Same name and namespace in other branches
  1. 7.3 flag.install \flag_update_6204()
  2. 7.2 flag.install \flag_update_6204()

Remove "content type" from the flag_counts primary key.

File

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

Code

function flag_update_6204() {
  $ret = array();
  db_drop_primary_key($ret, 'flag_counts');
  db_add_primary_key($ret, 'flag_counts', array(
    'fid',
    'content_id',
  ));
  return $ret;
}