function fb_user_app_update_6005 in Drupal for Facebook 7.3
Same name and namespace in other branches
- 6.3 contrib/fb_user_app.install \fb_user_app_update_6005()
File
- contrib/
fb_user_app.install, line 127 - Install file for fb_user.module.
Code
function fb_user_app_update_6005() {
$ret = array();
// Making uid unique was a bad idea. It can be 0.
// One of the following should work, depending on whether the key was added during install or update.
// The other will create a warning, unfortunately.
db_drop_unique_key($ret, 'fb_user_app', 'apikey_uid');
db_drop_unique_key($ret, 'fb_user_app', 'uid_2');
db_drop_unique_key($ret, 'fb_user_app', 'uid_4');
drupal_set_message(t('Note that if you see a warning about "Can\'t DROP ...", it is safe to ignore that message. See fb_user.install.'));
return $ret;
}