function twitter_update_7500 in Twitter 7.6
Same name and namespace in other branches
- 7.5 twitter.install \twitter_update_7500()
Renames twitter_account.added_by_uid to twitter_account.uid.
This reverts update 7403.
File
- ./
twitter.install, line 440 - Install, update and uninstall functions for the twitter module.
Code
function twitter_update_7500() {
if (db_field_exists('twitter_account', 'added_by_uid')) {
$spec = array(
'description' => "The uid of the user who added this Twitter account.",
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
);
db_change_field('twitter_account', 'added_by_uid', 'uid', $spec);
}
}