You are here

function twitter_update_7515 in Twitter 7.6

Same name and namespace in other branches
  1. 7.5 twitter.install \twitter_update_7515()

Adds retweet_count field to twitter table.

File

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

Code

function twitter_update_7515() {
  if (!db_field_exists('twitter', 'retweet_count')) {
    $data = array(
      'description' => 'Stores the retweet count for each tweet.',
      'type' => 'int',
      'unsigned' => TRUE,
      'not null' => TRUE,
      'default' => 0,
    );
    db_add_field('twitter', 'retweet_count', $data);
  }
}