function uc_file_update_7003 in Ubercart 7.3
Change index on uc_file_users.fid to be over fid and uid.
File
- uc_file/
uc_file.install, line 280 - Install, update and uninstall functions for the uc_file module.
Code
function uc_file_update_7003() {
// Index may have been changed in 6.x-2.x.
if (!db_index_exists('uc_file_users', 'fid_uid')) {
db_add_index('uc_file_users', 'fid_uid', array(
'fid',
'uid',
));
db_drop_index('uc_file_users', 'fid');
}
}