function flag_update_6208 in Flag 7.2
Same name and namespace in other branches
- 6.2 flag.install \flag_update_6208()
- 7.3 flag.install \flag_update_6208()
Convert flag_count indexes to include FID for more efficient indexing.
File
- ./
flag.install, line 452 - Flag module install/schema/update hooks.
Code
function flag_update_6208() {
db_drop_index('flag_counts', 'count');
db_drop_index('flag_counts', 'last_updated');
db_add_index('flag_counts', 'fid_count', array(
'fid',
'count',
));
db_add_index('flag_counts', 'fid_last_updated', array(
'fid',
'last_updated',
));
}