function twitter_update_7503 in Twitter 7.6
Same name and namespace in other branches
- 7.5 twitter.install \twitter_update_7503()
Update the twitter_id column to a big int, rather than a float-type value.
File
- ./
twitter.install, line 469 - Install, update and uninstall functions for the twitter module.
Code
function twitter_update_7503() {
db_drop_primary_key('twitter');
$spec = array(
'description' => 'Unique identifier for each {twitter} post.',
'type' => 'int',
'unsigned' => TRUE,
'size' => 'big',
'not null' => TRUE,
'default' => 0,
);
$index_spec = array(
'primary key' => array(
'twitter_id',
),
);
db_change_field('twitter', 'twitter_id', 'twitter_id', $spec, $index_spec);
}