function twitter_update_6001 in Twitter 6.2
Same name and namespace in other branches
- 6.5 twitter.install \twitter_update_6001()
- 6.3 twitter.install \twitter_update_6001()
- 6.4 twitter.install \twitter_update_6001()
Adding a handful of additional flags on accounts, and saving more metadata when Twitter sends it to us.
File
- ./
twitter.install, line 208
Code
function twitter_update_6001() {
$ret = array();
$attributes = array(
'description' => t("Boolean flag indicating whether the {twitter_user}'s posts should be pulled in by the site."),
'unsigned' => TRUE,
'default' => 1,
'not null' => TRUE,
);
db_add_column($ret, 'twitter_user', 'import', 'int', $attributes);
$attributes = array(
'description' => t("The location of the {twitter_account}'s owner."),
'length' => 255,
);
db_add_column($ret, 'twitter_account', 'location', 'varchar(255)', $attributes);
$attributes = array(
'description' => t("The number of users following this {twitter_account}."),
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
);
db_add_column($ret, 'twitter_account', 'followers_count', 'int', $attributes);
return $ret;
}