You are here

function twitter_update_7400 in Twitter 7.6

Same name and namespace in other branches
  1. 7.4 twitter.install \twitter_update_7400()
  2. 7.5 twitter.install \twitter_update_7400()

Adds field mentions to twitter_account table.

File

./twitter.install, line 393
Install, update and uninstall functions for the twitter module.

Code

function twitter_update_7400() {
  if (db_field_exists('twitter_account', 'mentions') === FALSE) {
    $data = array(
      'description' => "Boolean flag indicating whether the {twitter_user}'s mentions should be pulled in by the site.",
      'type' => 'int',
      'unsigned' => TRUE,
      'not null' => TRUE,
      'default' => 0,
    );
    db_add_field('twitter_account', 'mentions', $data);
  }
}