You are here

function flag_update_6204 in Flag 7.2

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

Remove "content type" from the flag_counts primary key.

File

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

Code

function flag_update_6204() {
  db_drop_primary_key('flag_counts');
  db_add_primary_key('flag_counts', array(
    'fid',
    'content_id',
  ));
}