You are here

function tweet_feed_update_7113 in Tweet Feed 7

Add our flag to tweets that are replies and fields for media urls.

File

./tweet_feed.install, line 197

Code

function tweet_feed_update_7113() {
  $schema = tweet_feed_schema();
  if (!db_field_exists('tweet_feed', 'is_reply')) {
    db_add_field('tweet_feed', 'is_reply', $schema['tweet_feed']['fields']['is_reply']);
  }
  if (!db_field_exists('tweet_feed', 'media_url')) {
    db_add_field('tweet_feed', 'media_url', $schema['tweet_feed']['fields']['media_url']);
  }
  if (!db_field_exists('tweet_feed', 'media_url_https')) {
    db_add_field('tweet_feed', 'media_url_https', $schema['tweet_feed']['fields']['media_url_https']);
  }
}