function twitter_update_6506 in Twitter 6.5
Convert the twitter_id to a BIGINT. Yes, this is going back to how it was in twitter_update_6003(). Sorry.
File
- ./
twitter.install, line 934 - Install, update and uninstall functions for the twitter module.
Code
function twitter_update_6506() {
$ret = array();
$spec = array(
'description' => t("Unique identifier for each {twitter} post."),
'type' => 'int',
'unsigned' => TRUE,
'size' => 'big',
'not null' => TRUE,
'default' => 0,
);
$keys = array(
'primary key' => array(
'twitter_id',
),
);
// Drop the existing primary key.
db_drop_primary_key($ret, 'twitter');
// Adjust the table, adding back the primary key again.
db_change_field($ret, 'twitter', 'twitter_id', 'twitter_id', $spec, $keys);
return $ret;
}