You are here

function gauth_update_7002 in Google Auth 7

Same name and namespace in other branches
  1. 7.2 gauth.install \gauth_update_7002()

Add the gauth_accounts.uid field.

File

./gauth.install, line 133
Install and uninstall functions for the Google OAuth module.

Code

function gauth_update_7002() {
  $field = array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
    'description' => 'The {users}.uid of the user who created the redirect.',
  );
  db_add_field('gauth_accounts', 'uid', $field);
  db_update('gauth_accounts')
    ->fields(array(
    'uid' => 1,
  ))
    ->execute();
}