You are here

function fb_user_update_2 in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 5.2 fb_user.install \fb_user_update_2()
  2. 5 fb_user.install \fb_user_update_2()
  3. 6.2 fb_user.install \fb_user_update_2()

File

./fb_user.install, line 77
Install file for fb_user.module.

Code

function fb_user_update_2() {
  $ret = array();

  // Add local uid to fb_user_app table.
  $ret[] = update_sql("ALTER TABLE {fb_user_app} ADD COLUMN uid int(11) DEFAULT NULL");
  $ret[] = update_sql("ALTER TABLE {fb_user_app} ADD INDEX (uid)");

  //$ret[] = update_sql("ALTER TABLE {fb_user_app} ADD UNIQUE INDEX (uid, apikey)");
  return $ret;
}